ASP.NET Web Application template missing in Visual Studio 2012

后端 未结 4 814
南笙
南笙 2021-02-12 14:47

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

相关标签:
4条回答
  • 2021-02-12 15:17

    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.

    0 讨论(0)
  • 2021-02-12 15:28

    Try to select Framework 4.5. The Framework 4.0 don't have :)

    Jorge Rocha

    0 讨论(0)
  • 2021-02-12 15:32

    kale909's solution worked for me. I just added pics here to make it more clear: enter image description here then here: enter image description here

    0 讨论(0)
  • 2021-02-12 15:36

    If you have ASP.NET MVC 4 Web Application as an option under Web when you select it as a new project the project window pops up and you will be able to select Web API.

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