52
votes

When I create a new web project with Visual Studio, I only see the templates in the picture below: missing MVC template

The MVC one is missing and so I can only create empty projects.

I tried with a repair of Visual Studio, but no luck.

Any suggestions?

11
Hi A couple of questions: - Under Help/About, does it show an entry for "Microsoft ASP.NET Web Frameworks and Tools 2013" - the version should be 5.2.30624.0 - Are the any files under C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\WebTemplates\MVC? - What's the Target Framework in the File->New Project dialog set to? - When you repaired VS, did it create a log in your %temp% folder for MVC. The file should have a name similar to dd_vs_enterprise_DATETIME_NNN_aspnetwebfxtoolsvs14.log Thanks, Jacques - Jacques Eloff
Under About I have ASP.NET and WebTools 14.0.20711.0 and I'm missing the MVC folder. In the log say the removal was complete, but nothing related to a fresh new install. I will investigate that. - Iridio
goto marketplace from visual studio, marketplace.visualstudio.com/… then you'll get all you need. - zobidafly
@zobidafly This didn't help for me. The templates are still missing after running the installer. Is there another step? - Jonathon Cowley-Thom
@Jonathon I got the templates in a two steps action, so first I have to select web application THEN the type of web application...tell me if you have the same behaviour... - zobidafly

11 Answers

55
votes

Just got the same issue after installing Developer Tools Microsoft ASP.NET and Web Tools 2015 (Beta7). I tried to reinstall ASP.NET Project Templates but it didn't help.

While looking into "Add / remove programs" -> "Visual 2015" -> "Modify" , I found the "Web developer tools" unchecked. This SO answer helps me to figure this.

After reinstalling this, everything reappears

enter image description here

47
votes

Just click on the "web" in left side-bar and select "ASP.NET Web Application", click "ok" and you will see next dialog:

Now, you can choose type of web application what you want.

35
votes

I'm going to add my 2 cents in case someone finds himself in a position like mine. I too was looking for an MVC project type and could not see it. All I saw is a "Web Application Project". So I freaked out and rushed into trying all solutions listed on this page.

But.

IT IS ACTUALLY THERE.

enter image description here

Just go with the "Web application" project and it will give you the MVC option on the next step.

11
votes

Visual studio 2015 does not show MVC project template if you select .Net 4.0 or below. Select .Net 4.5 or above, and you will be able to see MVC project.

This is what showed when you select .NET Framework 4:

enter image description here

and this when you select .NET Framework 4.5:

enter image description here

However, make sure you have installed web developers tools. To do so, go to Add / remove programs -> Visual 2015 -> Modify --> Web developer tools : Check and proceed with the installation.

6
votes

I don't think the accepted answer works anymore. According to Microsoft here, here, and here, has been re-branded to ASP.Net Core. It looks like they've taken down the templates from the general ASP.Net Web Application project type. But now there's a new project type of ASP.Net Core Web Application. enter image description hereI don't see an MVC template for this project type, but I don't think the Core framework has been completely released yet.

3
votes

I had the same issue with the MVC template not appearing in VS2015.

I checked Web Developer Tools when originally installing. It was still checked when trying to Modify the install. I tried unchecking and updating the install but next time I went back to Modify, it was still checked. And still no MVC template.

I got it working by uninstalling: Microsoft ASP.NET Web Frameworks and Tools 2015 via the Programs and Features windows and re-installing. Here's the link for those who don't have it.

2
votes

In my case that happened when uninstalling AspNet 5 RC1 Update 1 to update it for .Net Core 1.0 RC2. so I installed Visual Studio 2015 update 2, selected Microsoft Web Developer tools and everything went back to normal.

2
votes

For me, I saw none of the MVC templates (except the bottom two), after installing Update 3 which installed all the Core stuff.

missing mvc

Solution

I downloaded most recent core preview...

corepreview

It prompted me for "repair" and after it was done, bringing up VS indicated it was "Installing Templates" and they appeared!

Warning

Update 3 is a game changer in that the "preferred" way of doing things is to use dotnetcore. For example a console application now uses the new file stucture, other projects such as a Test Project still use the same folder structure as before. But MVC has changed. I'm not even sure what other "Web Developer Tools" work with dotnetcore right now.

1
votes

write this in nuget console Install-Package Microsoft.AspNet.Mvc -Version 5.2.3

1
votes

Visual Studio 2015 (Community update 3, in my scenario) uses a default template for the MVC project. You don't have to select it.

I found this tutorial and I think it answers the question: https://docs.asp.net/en/latest/tutorials/first-mvc-app/start-mvc.html

check out the old versions of this: http://www.asp.net/mvc/overview/older-versions-1/getting-started-with-mvc/getting-started-with-mvc-part1

http://www.asp.net/mvc/overview/getting-started/introduction/getting-started

Times have changed. Including .NET

0
votes

Other answer looks old.

For Visual Studio 2017, screen shots are below


New project


ASP.NET web Application


 MVC option


 MVC in solution explorer