Wednesday, November 27, 2013

Adding MonoMac and XamMac to Visual Studio references

First, locate MonoMac.dll in

/Applications/Xamarin Studio.app/Contents/MacOS/lib/monodevelop/AddIns

and/or XamMac.dll in the same location, or,

/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/usr/lib/mono

(The Xamarin target may change next month when "Xamarin.Mac.dll" is released.) These I copied to MonoMac and XamMac folders in C:\Program Files (x86)\Reference Assemblies in Windows.


Then, in regedit, create keys

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx\MonoMac

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx\XamMac

In each, assign the (Default) REG_SZ with the corresponding location in Reference Assemblies. For example:


Now when you Add Reference, you should see both MonoMac and XamMac.


Note that there is no need to involve the GAC.

2 comments:

  1. One day, you'll just be a memory to some people. Do your best to be a good one. See the link below for more info.

    #oneday
    www.ufgop.org

    ReplyDelete
  2. I really enjoyed reading your article. I found this as an informative and interesting post, so i think it is very useful and knowledgeable. I would like to thank you for the effort you have made in writing this article.


    edupdf.org

    ReplyDelete