Reputation: 268293
I know ASP .NET MVC libraries are now being shipped with Mono but I cannot find exact version information.
Which exactly version of ASP.NET MVC is supported in the latest Mono release, Mono 2.10.1?
Upvotes: 2
Views: 867
Reputation: 8943
Just to be more concise:
Mono 2.10 ships with ASP.NET MVC2 (and also MVC1) out of the box. It is the actual Microsoft code.
ASP.NET MVC 3 should work if you include the assemblies in your project (See the release notes).
MonoDevelop will allow you to work with all of these but the 'new solution' scaffolding for ASP.NET MVC still builds the skeleton of an ASP.NET MVC1 app.
Upvotes: 4
Reputation: 36614
Copying from the release notes:
http://www.mono-project.com/Release_Notes_Mono_2.10#ASP.NET_MVC3_Support
See below for notes on Razor and WebPages.
Although ASP.NET MVC3 is open source and licensed under the terms of the MS-PL license, it takes a few dependencies on new libraries that are not open source nor are they part of the Microsoft.NET Framework.
At this point we do not have open source implementations of those libraries, so we can not ship the full ASP.NET MVC3 stack with Mono (We still ship ASP.NET MVC 1 and MVC 2 with Mono for your deployment enjoyment).
This Mono release however has enough bug fixes and patches that you will be able to run ASP.NET MVC3 sites with it.
Since these new dependencies were not part of Microsoft.NET, they typically are referenced in your project and deployed in the bin/ directory of your ASP.NET site. Make sure that you remove the Microsoft.Web.Infrastructure.dll library from your site when deploying to Mono, to allow Mono to use its own implementation that integrates ASP.NET MVC3 with Mono.
To run your web sites, use our 4.0 profile programs:
- xsp4 for quick testing
- mod-mono-server4.exe for Apache
- hosting fastcgi-mono-server4.exe for FastCGI servers
Razor and WebPages
If you downloaded the Microsoft binaries for ASP.NET MVC3, you will have a few new libraries, the WebPages framework that allows simple web sites to be built and the Razor template engine/
You can use both of those binaries with Mono 2.10.
It is possible to get up and running with Razor and cshtml just by installing this release and running xsp4 on any directory that contains the bin/ assemblies and creating a .cshtml file.
Upvotes: 5