Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Web Application template missing in Visual Studio 2012

has anyone else dealt with this? My ultimate goal is to create a new empty web api project. I've been following tutorials and I've encountered the following issue:

My issue is that when I try to create a ASP.NET Web Application project in Visual Studio Pro 2012 I do not see that template as an option. I go to Installed --> Templates --> Visual C# --> Web

All I see is ASP.NET Empty Web Application. So I selected that and then expected the ASP.Net project window to pop up so that I could select "Web Api". However, that dialog never opened.

Does anyone know how/where I can get the ASP.NET Web Application template?

like image 691
AndeeC Avatar asked Dec 06 '13 02:12

AndeeC


People also ask

How do I get ASP.NET in Visual Studio?

In the Not finding what you're looking for? message, found at the bottom of the list of templates, select the Install more tools and features link. Next, in the Visual Studio Installer, select ASP.NET and web development. Select Modify in the Visual Studio Installer.

How do I add a web form in Visual Studio 2022?

The accepted answer to that question was: "Web Forms templates exist in Visual Studio 2022. Select ASP.NET Web Application (. NET Framework). A few clicks later you can select Web Forms.

How do I add a website template to Visual Studio 2019?

One way to do this is to select File --> Open --> Web Site from Visual Studio. Click on File System. Select your target folder or click on the Create New Folder icon and name it as you prefer. This will create an empty web site project and you can add new pages, folder and the like as needed.


1 Answers

I came across your question as I had the same problem. When I first installed Visual Studio I didn't tick the box to install the Web Components. Here is how I solved the issue:

  1. Close all your instances of Visual Studio.
  2. Run the Visual Studio Installer (I found mine in the Downloads folder still and was named "vs_professional.exe").
  3. For VS 2013 a grey window appears similar to when first installing VS.
  4. When prompted select "Modify" from the list of options.
  5. Tick the list item which I think was named "Web Development" or something similar.
  6. Click update.
  7. Once the installer has finished running launch Visual Studio.

When selecting New Project in Visual Studio I can now see the required templates.

like image 150
Pete Avatar answered Oct 19 '22 18:10

Pete