VMware shared folders and Visual Studio
ver since I've seen the light, I'm using git for every possible situation. Subversion is ok, but git is fun. It changed the way how I do developement. It allowed me to create ever so many fun-features for our product. Even in spare-time - without the fear of never completing and thus wasting them.
I have so many branches of all our projects - every one of them containing useful, but just not ready for prime-time feature. But when the time is right, I will be able to use that work. No more wasting it away because a bugfix touches the same file.
The day I dared to use git was the day that changed how I work.
Now naturally, I wanted to use all that freedom for my windows work aswell, but as you know, git just isn't quite there yet. In fact, I had an awful lot of trouble with it, mainly because of it's integrated SSH client that doesn't work with my putty pageant-setup and stuff.
So I resorted to storing my windows development stuff on my mac file system and using VMware Fusion's shared folder feature to access the source files.
Unfortunately, it didn't work very well at first as this is what I got:
I didn't even try to find out what happens when I compile and run the project from there, so I pressed F1 and followed the instructions given there to get rid of the message that the "Project location is not trusted".
I followed them, but it didn't help.
I tried adding various UNC paths to the intranet zone, but neither worked.
Then I tried sharing the folder via Mac OS X's built in SMB server. This time, the path I've set up using mscorcfg.msc actually seemed to do something. Visual Studio stopped complaining. And then I found out:
Windows treats host names containing a dot (.) as internet resources. Hostnames without dots are considered to be intranet resouces.
\\celes\windev worked in mscorcfg.msc because celes, not containing a dot, was counted as an intranet resource.
\\.host contains a dot and this is counted to be an internet resource.
This means that to make the .NET framework trust your VMWare shared folder, you have to add the path to the "Internet_Zone". Not the "LocalIntranet_Zone", because the framework loader doesn't even look there.
Once I've changed that configuration, Visual Studio complained that it was unable to parse the host name - it seems to assume them not starting with a dot.
This was fixed by mapping the path to a drive letter like we did centuries ago.
Now VS is happy and I can have the best of all worlds:
- I can keep my windows development work in a git repository
- I have a useful (and working) shell and ssh-agent to actually "git svn dcommit" my work
- I don't have to export any folders of my mac via SMB
- Time Machine now also backs up my Windows Work which I had to do manually until now.
Very nice indeed, but now back to work (with git
).

December 11th, 2008 - 00:52
Awesome! Just what I was looking for! Thanks!
Posting a link to this on the VMWare forums.
April 9th, 2009 - 16:15
So, correct me if I’m wrong: I’m adding a new (URL type) code group in Restricted_Zone, name it ‘.host’ for instance, and type ‘\\.host\*’ for URL, and use ‘Full Trust’ permission set. That didn’t work for me… Any ideas?
April 9th, 2009 - 16:30
Uh oh, I realized I had to create Internet_Zone and add this code group in there, instead of Restricted_Zone. My bad…
July 28th, 2009 - 09:42
Another note: Even if you follow these steps, VS will still complain about not being able to parse the hostname – correctly so as .host isn’t a valid host name. I have no idea though why it even has to parse host names in this case.
Anyhow, just map your shared folder to a drive letter and the complaints go away, rendering you finally able to actually work with a project stored on the host machine.
October 11th, 2009 - 00:24
Does this work also for web development? I mean, is IIS able to serve a web site from a shared folder?
I’ve also tried using git svn the other way around, mounting vmware’s folder with sshfs, but didn’t make it work, git kept complaining unable to create new index file
March 24th, 2010 - 15:44
Thank you so much! I was really having a time trying to figure this out on my own.