ASP.NET Web Application template missing in Visual Studio 2012
asp.net, asp.net-web-api
Solution
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:
- Close all your instances of Visual Studio.
- Run the Visual Studio Installer (I found mine in the Downloads folder still and was named "vs_professional.exe").
- For VS 2013 a grey window appears similar to when first installing VS.
- When prompted select "Modify" from the list of options.
- Tick the list item which I think was named "Web Development" or something similar.
- Click update.
- Once the installer has finished running launch Visual Studio.
When selecting New Project in Visual Studio I can now see the required templates.
Problem
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?