Starting a ASP.NET MVC3 project in MonoDevelop? Steps to do so?

program247365 picture program247365 · Oct 17, 2011 · Viewed 11.6k times · Source

I'm using MonoDevelop on the Mac with the latest Mono version installed.

What steps do I need to take to start using MVC3 in a project with RAZOR syntax (.cshtml files)?

I've read http://www.mono-project.com/Release_Notes_Mono_2.10#ASP.NET_MVC3_Support but it doesn't spell it out. How do I create my first .cshtml file? How do I tell my application to point to Index.cshtml, and not the default Index.aspx file when creating an MVC (2) project in MonoDevelop?


Update

I started a new MVC2 project in Mono. I started a new MVC3 project in VS 2010. I copied all the required DLLs over from the MVC3 to the MVC2 project in Mono. Now I build and get a "The compiler has appeared to crash" in Mono.

Error when building

I thought there was MVC3 support? http://mono-project.com/Release_Notes_Mono_2.10#ASP.NET_MVC3_Support What am I doing wrong here?

Answer

Chris picture Chris · Oct 18, 2011

I'm not sure how deep you're diving into Mono or what enviroment you're using, but here are three pretty useful blog articles about using MVC and Mono:

The second link has a downloadable MVC application that has already been setup to run with a version of Mono and uses MySql with the membership provider scheme scripted into it.

I hope these links help you, and good luck with your project.