MVC 5 for Visual Studio 2012

If you are still using Visual Studio 2012 and are looking for a way to have intellisense for your views made for razor 3, if you want to add a new view and a new controller with the proper menu entries in visual studio you probably noticed that with things don't work as they should.

Simply install the following 2 components:


In case the links don't work, check the original articles where I've found all the necessary information (thanks to them):

After installing these 2 components, you'll finally be able to work on MVC5, just as you were used with MVC 4. Check these screenshots:

[caption id="attachment_257" align="alignnone" width="324"]visual-studio2012-mvc5-project-controller-add-menu When you right click on "Controllers" and select "Add" you can now select "Controller..."[/caption]

[caption id="attachment_258" align="alignnone" width="367"]visual-studio2012-mvc5-project-views-add-menu When you right click on your Views folder and then select "Add" you can now select "View..." as well as new entries (see MVC 5 View options at the bottom)[/caption]

[caption id="" align="alignnone" width="605"]visual-studio2012-mvc5-project-view-scaffolding When you add a View, you can select a Model class and a Data context class, scaffolding will work also with Entity Framework 6[/caption]

Enjoy!