52

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?

Iridio
  • 9,213
  • 4
  • 49
  • 71
  • 2
    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 Sep 17 '15 at 17:31
  • 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 Sep 18 '15 at 06:09
  • goto marketplace from visual studio, https://marketplace.visualstudio.com/items?itemName=JacquesEloff.MicrosoftASPNETWebFrameworksandTools2015#review-details then you'll get all you need. – zobidafly Nov 24 '17 at 16:35
  • @zobidafly This didn't help for me. The templates are still missing after running the installer. Is there another step? – Jonathon Cowley-Thom Nov 29 '17 at 11:41
  • @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 Nov 30 '17 at 12:34

11 Answers11

55

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

Community
  • 1
  • 1
rducom
  • 7,072
  • 1
  • 25
  • 39
  • 2
    The only thing different is that my option was already checked. I unchecked it, reopened the installer and found that the option was still checked. Anyway it worked. – Iridio Sep 22 '15 at 15:28
  • 1
    Same experience as @Iridio. Except that it still doesn't work. – empty Dec 11 '15 at 19:36
  • 1
    To empty (directly above) and others who have experienced this issue I can only suggest you be persistent in repeating the steps as necessary. I just installed VS2015 With Updates - as of this date this includes the production release, i.e. Update 3 and ??, so everything _should_ work - but the template was missing. I repeated the steps rducom lists at least three times (I'm stubborn) and finally the template appeared. This has been the most painful VS update since I started using it (VS2008) – GDB Jul 01 '16 at 12:01
  • The first link is broken. – 41686d6564 stands w. Palestine Jan 21 '17 at 10:15
  • This whole shooting match is broken. Terrible QC. – Alan B Mar 21 '17 at 16:34
  • I tried that on VS15 proffessional but it refused , let me try for VS15 Enterprise – Lutaaya Huzaifah Idris May 17 '17 at 09:48
  • This is old, unrelated for the latest VS. Try this: https://stackoverflow.com/a/51147724/984471 – Manohar Reddy Poreddy Jul 04 '18 at 06:14
47

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.

Vitor Canova
  • 3,918
  • 5
  • 31
  • 55
Zarko Eeternal
  • 537
  • 4
  • 10
35

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.

jazzcat
  • 4,351
  • 5
  • 36
  • 37
11

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.

Aditya Bokade
  • 1,708
  • 1
  • 28
  • 45
6

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.

ARich
  • 3,230
  • 5
  • 30
  • 56
4

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.

lee_mcmullen
  • 2,801
  • 32
  • 39
  • Perhaps this is the easiest fix on this page. I checked Programs and Features and couldn't see Microsoft ASP.NET Web Frameworks and Tools 2015. Followed the link, downloaded it and installed it, everything was fine after that. – Simon Elms Dec 28 '16 at 11:56
2

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.

Alexz S.
  • 2,366
  • 4
  • 21
  • 34
2

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.

JWP
  • 6,672
  • 3
  • 50
  • 74
1

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

Shashank Sood
  • 480
  • 5
  • 16
1

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

JBarros
  • 101
  • 1
  • 3
0

Other answer looks old.

For Visual Studio 2017, screen shots are below


New project


ASP.NET web Application


 MVC option


 MVC in solution explorer


Manohar Reddy Poreddy
  • 25,399
  • 9
  • 157
  • 140