MonoDevelop Project Setup for Library w/ UnityEngine.dll

I am trying to create a new MonoDevelop C# library project to compile a bunch of scripts and other code into a portable DLL. I know how to do this on the command line using gmcs, but would love to be able to use MonoDevelop completely.

I can create a new MonoDevelop solution / c# library project just fine, and add the references for UnityScript.dll System.dll SystemCore.dll, etc… but when I try to add a managed .NET assembly (i.e. UnityEngine.dll) it will no longer do anything when the build button is pressed. I have gone through the solution and project settings, tried to manually edit the .csproj file so that it is closer to a standard one, but am stumped.

Hi John, I had the same problem as you.

You have to disable the “Mono Soft Debugger Support for Unity” add-in in the Add-in Manager of the MonoDevelop-Unity menu, before building your dll. Don’t forget to re-enable it when needed.

I found the solution in this post:
http://forum.unity3d.com/threads/64130-Monodevelop-Unityengine.dll-and-mscorlib?p=409831&viewfull=1#post409831

The problem seems to be that our version of MonoDevelop is bundled with Unity, used for scripting and debugging, not for building dlls…

Hope this help.