How to use Mono in Visual Studio 2010
The latest version of Visual Studio allows us to use different target framework of the project that we are developing. This give us the opportunity to use the Mono Framework via Visual Studio. Hence, we can target the Linux platform without leaving the Visual Studio Environment.
What do you need?
After the step by step installation, you should go to the library folder which usually is located here: C:\Program Files\Mono-2.8.2\lib\mono\4.0
Then you should copy all assemblies to
C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Mono
After that you should create the RedistList folder under the Mono folder. Then you can create FrameworkList.xml file with the following content:
<?xml version="1.0" encoding="utf-8"?> <FileList Redist="Mono_2.8.2" Name="Mono 2.8.2 Profile" RuntimeVersion="2.0" ToolsVersion="2.0"> </FileList>
Now you should start the Visual Studio 2010 and change the target framework of your project via the properties panel:
Linux compatibility
If you want to check for the project compatibility with the Linux platform, you should download the Mono Migration Analyzer tool (MoMa) from here.
You can integrate it in your project build in this way:
Notice that you should add the installation folder of MoMa to the system environment variable PATH.