Targetting Mono in Visual Studio is possible. This way your assemblies are build using the Mono framework (which should be .NET compatible). Change the target to the Mono profile to get immediate feedback of incompatible references and other Mono things. This can be done in the Properties > Application tab of your project.
To get this working you’ll need to register mono as a profile, just like the client profiles from Microsoft.
- Copy the contents of C:\Program Files\Mono-2.10.8\lib\mono\4.0 to
C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Mono.
- Create the folder RedistList and add to the new folder a file called FrameworkList.xml with the following content:
<?xml version="1.0" encoding="UTF-8"?> <FileList ToolsVersion="4.0" RuntimeVersion="4.0" Name="Mono 2.10.8 Profile" Redist="Mono_2.10.8"> </FileList>
- Add the following key to your registry
Below are links to the files created / used. The Registration only contains the FrameworkList.xml file, two registry files and a readme.txt. The Complete adds the Mono files which makes the file big(ger).
mono 2.10.8 profile registration only (12Kb)
mono 2.10.8 profile complete (13Mb)