Change "Existing Web Site" project type to MVC project

2.6k views Asked by At

I would like to change a loaded Existing Web Site in visual studio (2012) in my solution to a MVC4 project web application ! Actually, the loaded web site (from local IIS) is a real MVC application (so I'm not asking about some conversion ) , but visual studio is not recognize it like this ! With the existing solution, visual studio menus act like I have a webform application : I can't add Controller neither Views or other MVC specific items !

So how can I change the project to MVC ?

Thank you !

1

There are 1 answers

1
Kevin Giszewski On

I added this to my .csproj and now I have the 'Add->View' in my context when right-clicking my 'Views' folder. Hope this helps.

<ProjectTypeGuids>{E3E379DF-F4C6-4180-9B81-6769533ABE47};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>