Quick little trick: If you want to host your code on your Mac, and share it via VMWare shared folders, and you want to be able to compile it, and you are getting errors like this currently:

System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to besandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy bydefault, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

Then try this:

  1. Run up something as an administrator that will let you edit a file (Notepad/Scite/whatever floats your boat)
  2. Open up  %windir%\Microsoft.Net\Framework\%FrameworkVersion%\MSBuild.exe.config
    1. Note that this expands to C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe.config on my workstation
    2. If %FrameworkVersion% is not set, just navigate to the right version
  3. Add the following snippet under <runtime>
< loadFromRemoteSources enabled="true" />

There are probably more secure ways to do this, as this opens up MSBuild.exe to load any assembly from remote sources.  But for me this was a lot easier than dealing with secpol.exe, which seems to be a great big fail of complicated non-functional command-line gibberish (i.e. I couldn’t get it to work!).