Tony
Tony

Reputation: 12705

MVC 3 I can't add a new controller or view

I have installed the MVC 3, but after I've created that project, if I want to add a new Controller or View but there is no item in the list. See the images below. What's wrong ?

The project's targer framework is of course .NET 4

I have that items installed:

enter image description here

enter image description here

Upvotes: 1

Views: 1000

Answers (2)

Tony
Tony

Reputation: 12705

Solved

the purpose was, when I've opened the .csproj file there were wrong ProjectTypeGuids. I've replaced them with the data from the empty project and now it is OK.

Upvotes: 0

paul
paul

Reputation: 22011

It looks like you are trying to add MVC components to an ASP.NET Web project, rather than an ASP.NET MVC Web Project

Upvotes: 2

Related Questions