Tag Archives: intellisense

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:

visual-studio2012-mvc5-project-controller-add-menu

When you right click on “Controllers” and select “Add” you can now select “Controller…”

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)

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

Enjoy!