Showing posts from June, 2009

Mono in Visual Studio 2010

One cool new feature in Visual Studio 2010 is enhanced Multi Targeting. Presumably, its all about allowing developers to target both the 2.0 and 4.0 runtimes from VS2010, but what it really means is you can easily target Mono from within Visual Studio 2010.

Like this:

To enable this, you need to unzip this file to:
C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile

Once you do that, you can take your .NET project:

Go to project properties and switch it to the Mono 2.4 Profile:

Now it will compile using Mono's assemblies, and will flag methods that Mono does not contain, like thus:

This also works for Intellisense:

And Object Browser:

We are very excited about this feature, which should make it easy for people to ensure they are staying compatible with the Mono subset of the .NET framework without leaving Visual Studio. Once VS2010 is released, we will hopefully release the profile packs as we release each Mono version!

Words to Live By

When someone says "your project/code sucks", the correct response is neither "you suck" nor "yours sucks more". The only correct response is "how can I make it better?".