Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert Visual Studio project to ASP.NET MVC

I have a visual studio project which is an ASP.NET MVC project, however it doesn't recognize it as such in Visual Studio so I don't get the nice dropdowns with Add View and such. Rather I just get a very plain add file dialog which doesn't include any MVC file templates. When I create a new MVC project however I get all the nice little VS tools. So, can someone tell me how I can instruct VS to recognize the project as an MVC project?

Thanks

like image 887
pondermatic Avatar asked Jan 30 '09 06:01

pondermatic


2 Answers

For ASP.Net MVC 3, you will have to change the ProjectTypeGuids property in the project file to:

<ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
like image 176
Carling Avatar answered Sep 19 '22 00:09

Carling


Well, to answer my own question, you have to change the projecttypeguids in the project file. In the case of ASP.NET MVC RC1 they are:

{603c0e0b-db56-11dc-be95-000d561079b0};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}

Though of course these may vary depending on the version you're targeting.

like image 29
pondermatic Avatar answered Sep 21 '22 00:09

pondermatic