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:
- ASP.NET and Web Tools 2013.1 for Visual Studio 2012 (link to direct download)
- Entity Framework 6 Tools for Visual Studio 2012
In case the links don't work, check the original articles where I've found all the necessary information (thanks to them):
- Announcing release of ASP.NET and Web Tools 2013.1 for Visual Studio 2012
- ASP.NET and Web Tools 2013.1 for Visual Studio 2012
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"] When you right click on "Controllers" and select "Add" you can now select "Controller..."[/caption]
[caption id="attachment_258" align="alignnone" width="367"] 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"] 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!