program247365
program247365

Reputation: 4019

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

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?

Upvotes: 11

Views: 11667

Answers (4)

Console
Console

Reputation: 981

I managed to get MVC3 and razor to work in xamarin studio on MacOS by following the solution here:

Monodevelop MVC3 razor - what is the trick to get it to work?

Upvotes: 1

Gator
Gator

Reputation: 720

If you are getting the "Compiler has appeared to crash" when trying to cut over to MVC3, you should set your project to .NET 4. You can do this by right clicking on the project->Options->Build->General and selecting Mono / .NET 4.

Upvotes: 4

Fuel
Fuel

Reputation: 33

This gentleman seems to have had some success in getting MVC3 running in monodevelop on a mac.

Upvotes: 3

Chris
Chris

Reputation: 6325

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.

Upvotes: 6

Related Questions