Alejo Dev
Alejo Dev

Reputation: 2576

Error with asp.net mvc application in monodevelop

I just installed monodevelop.
I want to start with asp.net mvc using mono, but I cant'n make it work. I start a new ASP.NET mvc project, and I want to compile the default generated code, but I get an error on the line:

using System.Web.Mvc;

saying

The type or namespace name 'Mvc' does not exist in the namespace 'System.Web'

Note:

I have Monodevelop in spanish, the actual error I get is

El tipo o el nombre del espacio de nombres 'Mvc' no existe en el espacio de nombres 'System.Web' (;falta una referencia de ensamblado?)

Thank you.

Upvotes: 0

Views: 1845

Answers (1)

Andreas
Andreas

Reputation: 5309

In addition to the using directive you have to add a reference to the actual .dll containing the code you want to use.

To achieve that in monodevelop you have to go to References in the Solution pane and select Edit References. A new dialog will popup where you should be able to add a reference to System.Web.Mvc.

Upvotes: 1

Related Questions