Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Add Controller" / "Add View" in a hybrid MVC/WebForms ASP.NET application

I have an existing WebForms project to which I'm adding MVC pages. I created an MVC project and copied the project type guids.

It works fine, but I can't get Visual Studio to display the "Add Controller" or "Add View" wizards on my controllers and views directories (they're not /Controllers and /Views, they're in /Foo/Controllers and /Foo/Views).

Is it possible to enable the wizards?

like image 758
orip Avatar asked Oct 21 '09 12:10

orip


1 Answers

For MVC 3, ProjectTypeGuids should look like the following:

<ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

(See Upgrading an ASP.NET MVC 2 Project to ASP.NET MVC 3)

like image 168
Cory Avatar answered Sep 23 '22 13:09

Cory