[Mono-aspnet-list] ASP.NET MVC 3 under Windows with MonoDevelop

Tanguy Krotoff tkrotoff at gmail.com
Fri Apr 8 12:30:21 EDT 2011


Hi all,

I've managed to execute the ASP.NET MVC template that you provide with
MonoDevelop under Windows using ASP.NET MVC 3.

Here the steps:

* Install Mono (tested with 2.10.1), MonoDevelop (tested with 2.6 beta
1) and friends

* Install ASP.NET MVC 3 from Microsoft http://www.asp.net/mvc/mvc3

* Create a new solution "ASP.NET MVC Project" inside MonoDevelop

* Inside this new project, change "runtime version" to "Mono / .NET
4.0" instead of the default one which is "Mono / .NET 3.5"

* Copy-paste into the bin directory of the MVC project the following
dlls given with Microsoft ASP.NET MVC 3 (check C:\Program
Files\Microsoft ASP.NET)

Microsoft.Web.Infrastructure.dll
System.Web.Helpers.dll
System.Web.Mvc.dll
System.Web.Razor.dll
System.Web.WebPages.Deployment.dll
System.Web.WebPages.dll
System.Web.WebPages.Razor.dll
(source: http://www.hanselman.com/blog/default.aspx?page=11)

* Edit the assembly references of the project and add
System.Web.Mvc.dll from the bin directory

* Edit Web.Config and change every "System.Web.Mvc, Version=1.0.0.0"
to "System.Web.Mvc, Version=3.0.0.0"

* Run the project and enjoy the "Welcome to ASP.NET MVC on Mono!"
inside your web browser


I guess a template for ASP.NET MVC 3 might be a nice thing to add to
MonoDevelop + some explanations about Mono and ASP.NET MVC 3


More information about the Mono-aspnet-list mailing list