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:
还有其他人处理过这件事吗?我的最终目标是创建一个新的空Web api项目。我一直在关注教程,我遇到了以下问题:
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
我的问题是,当我尝试在Visual Studio Pro 2012中创建ASP.NET Web应用程序项目时,我没有看到该模板作为选项。我去安装 - >模板 - > 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.
我看到的只是ASP.NET空Web应用程序。所以我选择了那个,然后期望ASP.Net项目窗口弹出,以便我可以选择“Web Api”。但是,该对话框从未打开过。
Does anyone know how/where I can get the ASP.NET Web Application template?
有谁知道我如何/在哪里可以获得ASP.NET Web应用程序模板?
4 个解决方案
#1
14
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:
因为遇到同样的问题,我遇到了你的问题。当我第一次安装Visual Studio时,我没有在框中打勾来安装Web组件。以下是我解决问题的方法:
- Close all your instances of Visual Studio.
- 关闭所有Visual Studio实例。
- Run the Visual Studio Installer (I found mine in the Downloads folder still and was named "vs_professional.exe").
- 运行Visual Studio安装程序(我在下载文件夹中找到了我的,并命名为“vs_professional.exe”)。
- For VS 2013 a grey window appears similar to when first installing VS.
- 对于VS 2013,灰色窗口显示类似于首次安装VS时。
- When prompted select "Modify" from the list of options.
- 出现提示时,从选项列表中选择“修改”。
- Tick the list item which I think was named "Web Development" or something similar.
- 勾选我认为名为“Web开发”或类似内容的列表项。
- Click update.
- 点击更新。
- Once the installer has finished running launch Visual Studio.
- 安装程序运行完毕后启动Visual Studio。
When selecting New Project in Visual Studio I can now see the required templates.
在Visual Studio中选择New Project时,我现在可以看到所需的模板。
#2
8
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.
如果您在Web下选择ASP.NET MVC 4 Web应用程序作为新项目,则会弹出项目窗口,您将能够选择Web API。
#3
8
Try to select Framework 4.5. The Framework 4.0 don't have :)
尝试选择Framework 4.5。 Framework 4.0没有:)
Jorge Rocha
豪尔赫罗查
#4
8
kale909's solution worked for me. I just added pics here to make it more clear: then here:
kale909的解决方案对我有用。我刚刚在这里添加了图片以使其更清晰:然后在这里:
#1
14
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:
因为遇到同样的问题,我遇到了你的问题。当我第一次安装Visual Studio时,我没有在框中打勾来安装Web组件。以下是我解决问题的方法:
- Close all your instances of Visual Studio.
- 关闭所有Visual Studio实例。
- Run the Visual Studio Installer (I found mine in the Downloads folder still and was named "vs_professional.exe").
- 运行Visual Studio安装程序(我在下载文件夹中找到了我的,并命名为“vs_professional.exe”)。
- For VS 2013 a grey window appears similar to when first installing VS.
- 对于VS 2013,灰色窗口显示类似于首次安装VS时。
- When prompted select "Modify" from the list of options.
- 出现提示时,从选项列表中选择“修改”。
- Tick the list item which I think was named "Web Development" or something similar.
- 勾选我认为名为“Web开发”或类似内容的列表项。
- Click update.
- 点击更新。
- Once the installer has finished running launch Visual Studio.
- 安装程序运行完毕后启动Visual Studio。
When selecting New Project in Visual Studio I can now see the required templates.
在Visual Studio中选择New Project时,我现在可以看到所需的模板。
#2
8
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.
如果您在Web下选择ASP.NET MVC 4 Web应用程序作为新项目,则会弹出项目窗口,您将能够选择Web API。
#3
8
Try to select Framework 4.5. The Framework 4.0 don't have :)
尝试选择Framework 4.5。 Framework 4.0没有:)
Jorge Rocha
豪尔赫罗查
#4
8
kale909's solution worked for me. I just added pics here to make it more clear: then here:
kale909的解决方案对我有用。我刚刚在这里添加了图片以使其更清晰:然后在这里: