Skip to content

How to use Mono in Visual Studio 2010

February 13, 2011

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:

mono_framework

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:

mona

Notice that you should add the installation folder of MoMa to the system environment variable PATH.

Advertisement

From → Articles

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.