Visual Studio 2013 - No Visual Basic/Visual C# Web Templates Installed

后端 未结 7 563
無奈伤痛
無奈伤痛 2020-11-30 05:10

I\'ve installed Visual Studio 2013 Premium (MSDN license) on my machine. Yet, the ASP.NET Web Application template is not there (except for Version2012, which offers me MVC

相关标签:
7条回答
  • 2020-11-30 05:18

    After many hours of troubleshooting, these are the steps I took to fix the issue (on Windows 7 Ultimate). I assumed it was an issue with a corrupt installation and possible problems with registry keys, so I removed any and all Microsoft development tools using the following steps:

    • FULL VIRUS SCAN (just to make sure this was not related to a virus or malware). I used Microsoft Security Essentials
    • Downloaded Microsoft FixIt to help clean up registry keys as I deleted programs. After I deleted any program or program updates, I ran this tool to verify a clean uninstall had been done
    • Visual Studio 2010 - Ran the Visual Studio 2010 Uninstall Utility and removed the program. Went into Control Panel > Programs > Uninstall a program > View Installed Updates and searched for 'Visual Studio 2010', then removed any updates associated with VS2010 (and ran the FixIt program after every uninstall to verify the registry keys had been wiped)
    • Followed this MSDN post to remove Visual Studio 2012 (paying particular attention to the 'Optional Shared Packages' and removed any and all programs under this list, again running Microsoft FixIt to verify the registry keys were wiped)
    • Followed this blog post from Shawn Harrison to remove all SQL server; also referenced these two MSDN posts Uninstall an Existing Instance of SQL Server (Setup) and SQL Server Files Left After Uninstall
    • Uninstalled Visual Studio 2013, along with all references to 'Visual Studio 2013' in programs and installed updates; used FixIt to clean up registry keys after every install
    • Last but not least, I removed all MVC Visual Studio-related tools, references extensions including Web Tools and Web Platform Installer

    This solved my problem with missing templates :)

    (I'm soooooooo grateful this was all done on an SSD, however, I think it would have taken 5x longer with an old-spinning HD)

    Cheers, everyone!

    0 讨论(0)
  • 2020-11-30 05:29

    Have you tried updating the gallery Tools>Extension and updates> Templates

    To get up and running you could click Version 2012 under Web and get to the stock web applications templates which will provide you upto MVC 4 For MVC 5 you can either download Visual Studio 2013 Express Web, it roughly has the same ASP.NET features at Premium on MSDN License.

    0 讨论(0)
  • 2020-11-30 05:30

    Not the solution in your case, but I had a similar issue where I could not find the MVC templates. Eventually I realized that I still had .NET Framework 3.5 selected, which of course does not provide MVC... switching to .NET Framework 4.5 let me find the MVC templates again.

    You already had 4.5 selected in the screenshot, but I'm just posting this here for others who might make the same mistake as I did.

    0 讨论(0)
  • 2020-11-30 05:30

    Update for Studio 2013: Make sure you install express for Windows and not express for Windows Desktop. The Desktop version does not have the Web templates.

    0 讨论(0)
  • 2020-11-30 05:38

    I think that "Re-install Visual Studio from scratch" is not a solution.

    I have faced with the described problem and found much faster way to fix it:

    1. First of all, try to repair Visual Studio installation (in "Control Panel\Programs\Programs and Features" find your Visual Studio, right-click and select "Repair"). Reboot after (!).
    2. Check if template appeared in the Visual Studio. If not, then: in the "Control Panel\Programs\Programs and Features" make sure that you have "Microsoft Web Platform Installer 4.x" installed (I have 4.6 version). If not - install it from here: http://www.microsoft.com/web/downloads/platform.aspx
    3. Run "Web Platform Installer" (it should be here: "%ProgramFiles%\Microsoft\Web Platform Installer\WebPlatformInstaller.exe")
    4. On the "Products" tab find the line "Microsoft ASP.NET and Web Tools 2013.1 for Visual Studio 2013" (make sure that it is not for 2012!). If line has "Add" button on the right side enabled, then click it and install the tools. Reboot PC (!) and you should have your ASP.NET project template back.
    5. If line says "Installed", then you should repair it via "Control Panel\Programs\Programs and Features", just find "Microsoft ASP.NET and Web Tools 2013.1 -Visual Studio 2013", right-click and select "Repair"). Reboot PC (!) and you should have your ASP.NET project template back!

    Cheers!

    0 讨论(0)
  • 2020-11-30 05:38

    Don't forget to check that "Microsoft Web Developer Tool" was actually enabled during installation see this related stackoverflow question: How do I open a csproj with ProjectTypeGuids 349c5851-65df-11da-9384-00065b846f21? "Microsoft Web Developer Tool" that was the problem for me

    0 讨论(0)
提交回复
热议问题