Make Visual Studio work with VMWare Fusion Shares

August, 19. 2009 at 05:17 PM

VMWare Fusion allows Mac users to run virtualized operating systems. The “Shared Folder” feature allows for sharing profile folders on the Mac (Desktop, Documents, Music, Pictures) with virtualized operating systems. Having a shared work space eliminates the need for duplication of files that need to be used in both operating systems.

I run a virtualized Windows XP operating system so that I can code in Visual Studio on my Mac. I prefer to do design (HTML, CSS) on the Mac side of things. Having shared storage for use in my projects eliminates the need to copy back and forth. It also allows me to backup my Visual Studio projects using Time Machine without having to make a copy of my VM every time. However, to make Visual Studio happy with the shared Documents folder, there some settings that need changed.

Change the Documents folder location to be a mapped drive

When working with web projects located on shared storage, Visual Studio doesn’t like the .host location shared by VMWare because of the dot in front of the share name. This is resolved by mapping the .host share to a network drive, and setting the My Documents folder in Windows to be located on the network drive. VMWare automatically maps its shares to the Z drive.

Get rid of the “failed to start monitoring changes” build error

Visual Studio’s default behavior is to monitor folders in web projects for changes. Because the Documents folder is on a UNC share, this behavior prevents web projects from building. The only solution I have found is to disable this behavior.

  1. Open regedit and navigate to HKLM\Software\Microsoft\ASP.NET\
  2. Create a new DWORD value named FCNMode
  3. Set FCNMode to have a decimal value of 1

Get rid of the “Project location not trusted” error

By default, the .NET configuration will not trust the shared folders from VMWare for projects. You will see an error when opening projects from the shared folder.

You must tell .NET to trust the location. Install the .NET Framework 2.0 SDK.When installing, you will only need “Tools and Debugger”; uncheck everything else. After the install, you will have a new tool under Administrative Tools for .NET 2.0 configuration.

  1. Open the .NET configuration tool
  2. Expand the tree on the left side to My Computer > Runtime Security Policy > Machine > Code Groups > All Code > LocalIntranet_Zone
  3. Right click on LocalIntranet_Zone and select the “new” option to create a new code group
  4. Name the code group “.host” (without the quotes) and click next
  5. Change the condition type dropdown to URL and enter “file:\\.host\*” (without the quotes) in the URL text box type and click next
  6. Choose “Full Trust” as the existing permission set, click next, then click finish. You should see a .host in the LocalIntranet_Zone as shown below. Save and close all windows.

 

You will now need to tell Internet explorer that .host is a trusted zone.

  1. Open up IE and go to Tools –>Internet Options
  2. Go to the Security tab, highlight Local Intranet and click the sites button
  3. Click the advanced button. In the “Add this website to zone” text box, type “file://..host/*” without the quotes and click add. Save and close all windows.

You’re all set. Visual Studio will now work with VMWare Fusion’s shared folders. Happy coding.

 

Comments (74) -

9/30/2009 7:16:21 AM

Peter de Voil

The IE options don't like “file://..host/*”. I used “*://*..host/*”

Peter de Voil Australia

1/18/2010 6:27:46 PM

Netflix

Hi friends,
Do any of you no how to install Visual Studio on my mobile set.
Do tell me I will be glad to hear from you all.

Netflix United States

2/14/2010 7:28:51 PM

quiche recipe

Will give it a go, thanks!

quiche recipe United Kingdom

3/14/2010 6:04:54 PM

Eugena Kerrick

I concur that faults are difficult to trace and sometimes they can confound more novice software engineers who don’t know what you're speaking about, nevertheless, creating errors while you work out on a tutorial can sometimes be helpful by broadcasting how everyone can cause mistakes and instructs people not to make the identical errors.

Eugena Kerrick United States

3/18/2010 6:29:00 AM

seo tools

Not that I have any intention to copy your website, but I truly adore the look. would you tell me which template are you using? Or was it made especially for you?

seo tools Slovenia

3/27/2010 6:42:37 AM

Keith Cainion

Hello I just wanted to ask on what is the difference between blogenenigne and wordpress blogs? Is it easier to use or more efficient? I amseeing a lot of blogs powered by this software popping up lately and wondering if it is better or not? Thanks...

Keith Cainion United States

3/28/2010 2:27:24 AM

Daniel Millions

Just wanted to say that you have some awesome content on your website. If it's allowed I would like to use some of the information you provided on my webiste. If I link back to your website would it be OK to do so?

Daniel Millions United States

4/1/2010 2:07:21 PM

Lamps

Where did you get this theme. Is this Wordpress?

Lamps United States

4/2/2010 1:19:04 PM

Sony Contract Deals

Just seen this on twitter cheers for the info.

Sony Contract Deals United Kingdom

4/3/2010 3:01:08 PM

Waneta Laranjo

[...] Trackback : alextafoya.com | Make Visual Studio work with VMWare Fusion Shares - alextafoya.com/.../...th-VMWare-Fusion-shares.aspx - Use IRA or 401(k) funds to invest in your Business or Franchise today! Financing a ... http://commercial-funding.org/ [...]

Waneta Laranjo United States

4/23/2010 11:29:00 AM

Damien Burgess

Hi, perhaps you could assist me? I found u are utilizing Blog Engine in your website. I lately made a decision to create a weblog for myself and i'm presently making use of the wordpress weblog. I study about blog engine and i was asking yourself if you can tell me where i could find very good instruction or videos on how to use it properly? Thanks for that assistance.

Damien Burgess United States

4/25/2010 5:44:50 AM

on site otpimization

Which blog platform are you using for this site? I'm getting tired of wordpress because I've had issues with hackers and I'm looking at options for another platform. It would be great if you could point me in the direction of a good platform.

on site otpimization United States

4/25/2010 8:20:06 AM

Alex

I use blogengine.net.

http://www.dotnetblogengine.net/

Cheers.

Alex United States

4/27/2010 12:56:55 AM

Insurance Lawyer California

If it's allowed I would like to use some of the information you provided on my webiste. If I link back to your website would it be OK to do so?

Insurance Lawyer California United States

4/28/2010 5:42:41 AM

Albert

I have been using VMWare Fusion for a year, and I am amazed it is working very good, it allows me to use my Mac pro as a server to which I can easily connect from my netbook.

Albert United States

4/28/2010 12:43:31 PM

Alex

I am very impressed with VMware in general. I use their hypervisor in both work and play. I just virtualized a datacenter and am very satisfied by the results. I'm sure the addition of a NetApp SAN and Nehalem Quad cores helped a bit too Smile

Alex United States

5/18/2010 7:37:37 AM

UltraHosting Review

I have been surfingonline just above 3 hours today, yet I by no means found any interesting piece similar to yours about asp.net It really is pretty worth enough for me. Personally, if all webmasters and bloggers made good content as you did, the internet are going to be much more functional than ever before.

UltraHosting Review United States

5/29/2010 10:55:37 AM

James

The thing that makes me love VMWare Fusion, is that it works using similar algorithm with Denver.

James United Kingdom

5/29/2010 10:56:02 AM

James

The thing that makes me love VMWare Fusion, is that it works using similar algorithm with Denver.

James United Kingdom

6/13/2010 1:36:48 PM

pbs kids games

At least, I have an Mac and I am very happy it is possible now

pbs kids games United States

6/25/2010 12:41:33 AM

dream interpretation

Eu estava procurando uma solução legal para upload com MVC e acabei encontrando por acaso em seu blog.

dream interpretation United States

7/13/2010 9:58:08 PM

Chris

I'm going to implement this method.

Chris United States

7/13/2010 10:01:02 PM

Chris

I'm going to implement this method.

Chris Indonesia

8/6/2010 5:38:35 AM

dress

White long sleeve length TOP like the girls delicate little mind . Go with the blue feet pants , the cloudy and the sky are always have an appointment .

dress People's Republic of China

8/6/2010 5:38:56 AM

dress

White long sleeve length TOP like the girls delicate little mind . Go with the blue feet pants , the cloudy and the sky are always have an appointment .

dress People's Republic of China

8/6/2010 5:39:44 AM

dress

The classic color of black and white have exaggerated pattern . It can revealed the art breath  which can diffuse in the air in unconsciously . Floss is the popular home services fabric which are lightweight comfort , cut loose and comfortable , do not choose size .

dress People's Republic of China

8/10/2010 1:40:18 PM

arts college

Anyway,I prefer to do design (HTML, CSS) on the Mac side of things. I have you bookmarked to check out new stuff you post.

arts college Australia

8/18/2010 10:25:26 PM

Electronic Tutorial

I'm lost in this site and get a new science of the articles you write. I was really lucky on the side

Electronic Tutorial United States

8/18/2010 10:27:41 PM

Criminal Lawyer

I love Viual Studio. These two should make for a great mix!


Criminal Lawyer United States

8/22/2010 6:35:48 AM

Los Angeles CPA

Wow, that's pretty awesome that you pulled that off. I'm kind of a newb with code, but this seems like something i can grasp and being a person who uses both mac and pc, i think i will actually give this a go! Thanks!

Los Angeles CPA United States

8/27/2010 2:29:33 AM

Phillip wasserman

I’m currently blogging for a (poor) living for someone else… but I like it. You’ve inspired me to keep doing it, and look to doing it for myself soon

Phillip wasserman United States

9/20/2010 11:46:37 AM

Paul

Thanks for this post.  After following your instructions, though, I'm still getting the error on trying to run a website using VS's embedded server , "An error occurred loading a configuration file: Failed to start monitoring changes to '\\vmware-host\Shared Folders\Documents\Visual Studio 2010\Projects\WebSpike\WebSpike\WebSpike.Web'."  with the source file listed as the app's web.config file, as you described in your first step.  I do have that registry key added, though, have rebooted since adding it, and so on.

If it matters, I'm on Win 7 64 bit and the latest version of VMWare (just setup my env. last week).

Thanks for any help or ideas.

Paul

Paul United States

9/20/2010 11:47:24 AM

Paul

Thanks for this post.  After following your instructions, though, I'm still getting the error on trying to run a website using VS's embedded server , "An error occurred loading a configuration file: Failed to start monitoring changes to '\\vmware-host\Shared Folders\Documents\Visual Studio 2010\Projects\WebSpike\WebSpike\WebSpike.Web'."  with the source file listed as the app's web.config file, as you described in your first step.  I do have that registry key added, though, have rebooted since adding it, and so on.

If it matters, I'm on Win 7 64 bit and the latest version of VMWare (just setup my env. last week).

Thanks for any help or ideas.

Paul

Paul United States

10/8/2010 9:47:34 AM

curtain wall

I thank you for sharing this information and it really helped us a lot!

curtain wall United States

10/8/2010 9:47:49 AM

curtain wall

I thank you for sharing this information and it really helped us a lot!

curtain wall United States

10/8/2010 9:54:31 PM

cheap hotels in killarney

I am sitting in the hotel room in Killarney, looking over this. This is definitely decent stuff. A good deal of comments, a few interesting and some which do not make any sense.

cheap hotels in killarney Ireland

10/8/2010 9:55:05 PM

cheap hotels in killarney

I am sitting in the hotel room in Killarney, looking over this. This is definitely decent stuff. A good deal of comments, a few interesting and some which do not make any sense.

cheap hotels in killarney Ireland

11/3/2010 11:13:02 AM

Bathroom Fitters London

Visual Studio’s default behavior is to monitor folders in web projects for changes. Because the Documents folder is on a UNC share, this behavior prevents web projects from building. The only solution I have found is to disable this behavior.

Bathroom Fitters London United States

11/5/2010 6:16:44 AM

buddhi

I want to perfect in Viual Studio.these things are very important for me to achieve my target.Thank you very much!!!!!!!

buddhi Sri Lanka

11/5/2010 6:17:34 AM

buddhi

I want to perfect in Viual Studio.these things are very important for me to achieve my target.Thank you very much!!!!!!!

buddhi Sri Lanka

11/5/2010 6:18:47 AM

buddhi

I want to perfect in Viual Studio.these things are very important for me to achieve my target.Thank you very much!!!!!!!

buddhi Sri Lanka

11/12/2010 6:28:27 AM

wedagedara

Valuable information’s and excellent worked. I will keep visiting your site often.This is a great article thanks for sharing this information.i like this template and color machine. do continue with your professional work. Give your knowledge for all people. Because who like to know more information. I saved some details to me.

wedagedara United States

11/12/2010 6:29:05 AM

wedagedara

Valuable information’s and excellent worked. I will keep visiting your site often.This is a great article thanks for sharing this information.i like this template and color machine. do continue with your professional work. Give your knowledge for all people. Because who like to know more information. I saved some details to me.

wedagedara United States

11/12/2010 6:29:31 AM

wedagedara

Valuable information’s and excellent worked. I will keep visiting your site often.This is a great article thanks for sharing this information.i like this template and color machine. do continue with your professional work. Give your knowledge for all people. Because who like to know more information. I saved some details to me.

wedagedara United States

2/26/2011 7:25:45 PM

Sewing Supplies

A little unrelated, but I just spent an hour looking around! Great site, I'll try and come back with a more insightful comment when I read this.

Sewing Supplies United States

3/4/2011 3:37:42 AM

Football Tips

will give it a try, thanks !

Football Tips United States

3/4/2011 3:38:10 AM

Football Tips

will give it a try, thanks !

Football Tips United States

4/18/2011 8:23:03 PM

accountants auckland

Thanks for resolving the issue which many users were facing. I was also facing it now can resolve myself.

accountants auckland United States

4/18/2011 8:23:18 PM

accountants auckland

Thanks for resolving the issue which many users were facing. I was also facing it now can resolve myself.

accountants auckland United States

5/5/2011 10:25:43 PM

Max Generation

I am trying this, Thanks for share

Max Generation United States

5/7/2011 5:51:37 PM

Jon

Visual studio is a really versitile piece of software, I am interested in its integration with other apps like this.

Jon United Kingdom

5/7/2011 5:51:57 PM

Jon

Visual studio is a really versitile piece of software, I am interested in its integration with other apps like this.

Jon United Kingdom

5/7/2011 5:53:39 PM

Jon

Visual studio is a really versitile piece of software, I am interested in its integration with other apps like this.

Jon United Kingdom

5/11/2011 12:20:28 PM

Book Store Online Australia

I need to use visual studio a little bit more. I mainly specialize in php so its a new thing for me.

Book Store Online Australia United States

5/11/2011 12:20:56 PM

Book Store Online Australia

I need to use visual studio a little bit more. I mainly specialize in php so its a new thing for me.

Book Store Online Australia United States

5/13/2011 7:47:16 AM

Medical billing and coding salaries

This is nice post which I was awaiting for such an article and I have gained some useful information from this site. Thanks for sharing this information.

Medical billing and coding salaries United States

5/19/2011 10:38:58 AM

advertising copywriter

I've heard some great things about the Visual Studio program.

advertising copywriter United States

5/19/2011 10:53:04 AM

advertising copywriter

I've heard some great things about the Visual Studio program.

advertising copywriter United States

6/4/2011 11:27:30 PM

wholesale nail art supplies

thanks for sharing, it is helpful

wholesale nail art supplies People's Republic of China

6/4/2011 11:31:37 PM

wholesale nail art supplies

thanks for sharing, it is helpful

wholesale nail art supplies People's Republic of China

6/19/2011 11:44:28 PM

juicy couture

Your bolg is very using to me!!

juicy couture United Kingdom

6/19/2011 11:44:56 PM

juicy couture

Your bolg is very using to me!!

juicy couture United Kingdom

6/19/2011 11:45:35 PM

juicy couture

Your bolg is very using to me!!

juicy couture United Kingdom

6/19/2011 11:46:07 PM

juicy couture

Your bolg is very using to me!!

juicy couture United Kingdom

6/19/2011 11:46:30 PM

juicy couture

Your bolg is very using to me!!

juicy couture United Kingdom

6/19/2011 11:47:17 PM

juicy couture

Your bolg is very using to me!!

juicy couture United Kingdom

6/24/2011 3:43:57 AM

tt

????????<a href="http://www.925-pandora-beads.com/">pandora bracelet</a>,<a href="http://www.925-pandora-beads.com/">pandora jewelry</a>

tt People's Republic of China

6/29/2011 5:39:53 PM

sony investment

you have harnessed visual studio very nicely here...

sony investment United States

7/5/2011 11:56:34 PM

christian louboutin outlet usa


<a href="http://www.b2b-free.com/">christian louboutin outlet usa</a>
The article written in very good thank you for sharing

christian louboutin outlet usa People's Republic of China

7/5/2011 11:57:05 PM

christian louboutin outlet usa


<a href="http://www.b2b-free.com/">christian louboutin outlet usa</a>
The article written in very good thank you for sharing

christian louboutin outlet usa People's Republic of China

7/5/2011 11:57:24 PM

christian louboutin outlet usa


<a href="http://www.b2b-free.com/">christian louboutin outlet usa</a>
The article written in very good thank you for sharing

christian louboutin outlet usa People's Republic of China

7/5/2011 11:57:35 PM

christian louboutin outlet usa


<a href="http://www.b2b-free.com/">christian louboutin outlet usa</a>
The article written in very good thank you for sharing

christian louboutin outlet usa People's Republic of China

7/5/2011 11:58:31 PM

christian louboutin outlet usa


<a href="http://www.b2b-free.com/">christian louboutin outlet usa</a>
The article written in very good thank you for sharing

christian louboutin outlet usa People's Republic of China

7/25/2011 8:42:27 AM

John

Great!

John United States

Pingbacks and trackbacks (19)+

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading