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!
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!
Comments
You can also make a completely new framework that is not a subset of 3.5, but it is a bit more involved for no gain.
Keep up the great work guys. You rock!!!
Our team is thinking about using Mono for ASP.NET Web Service which will work on Amazon EC2 instance.
EC2 now supports both Windows and Linux images, but I think that deploy/update procedure will be easier for Linux. Moreover, EC2 service has a little bit cheaper prices for Linux instances ;)
Yes, *Microsoft* has multitargeting in VS2008. However, it is not extensible by third parties. The new part in VS2010 is opening this up to third parties to extend.
Error : The method or operation is not implemented.
how i can solved ?.
i must have mono installed ?
Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkType.get_RuntimeType()
How i cant solved?
Some special configuration on the installation of mono ?
http://pastebin.com/f38829df8
this is what i got in linux...
http://www.verwijs-pc.nl/shares/opensim-error_linux.txt
I am wondering if it is possible to do this with an ASP.NET MVC2 project? I have created a 2.6.4 profile and it works fine with Class Libraries, but on an MVC2 project, I do not get the Mono 2.6.4 Profile in the drop down selector. Any ideas or help?
You can find a profile for Mono 2.8 here:
http://greghurlman.com/2010/10/23/visual-studio-2010-client-profile-for-mono-2-8/
Thanks, Jason
Has anyone created a 2.10.1 profile yet?
Creating an additional registry key did the trick for me. Since I'm running Windows 7 x64, it was:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319\SKUs\.NETFramework,Version=v4.0,Profile=Mono
I suppose for x86 it’s
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\SKUs\.NETFramework,Version=v4.0,Profile=Mono
(Where v4.0.30319 would be the version of the current 4.0 framework installed.)
Hope that helps!