How to add MVC5 to Visual Studio 2013?

developer82 picture developer82 · Jan 13, 2014 · Viewed 184.9k times · Source

I'm starting a new project, and would like to give a try to MVC 5 (I have built a web app using MVC 4 before).

In Visual Studio 2013, I click the New Project and navigate to Visual C# > Web > Visual Studio 2012 (even though I have installed VS 2013 it says 2012 in the menu) and on that list I only have MVC 4 application - not 5.

The framework in the drop down menu is set to .NET Framework 4.5.1 - and still nothing.

I've checked Tools > Extensions and Update and searched for MVC 5 - but it doesn't find anything official from Microsoft.

How can I add MVC 5 to my Visual Studio 2013?

Thank you

Answer

SLaks picture SLaks · Jan 13, 2014

Visual Studio 2013 no longer has separate project types for different ASP.Net features.

You must select .NET Framework 4.5 (or higher) in order to see the ASP.NET Web Application template (For ASP.NET One).
So just select Visual C# > Web > ASP.NET Web Application, then select the MVC checkbox in the next step.

Note: Make sure not to select the C# > Web > Visual Studio 2012 sub folder.