ASP.NET Web应用程序模板在Visual Studio 2012中失踪 [英] ASP.NET Web Application template missing in Visual Studio 2012

查看:193
本文介绍了ASP.NET Web应用程序模板在Visual Studio 2012中失踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有其他人处理这件事?我的最终目标是创建一个新的空的Web API项目。我一直在下面的教程和我遇到了以下问题:

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:

我的问题是,当我尝试在Visual Studio 2012专业版创建一个ASP.NET Web应用程序项目,我没有看到该模板作为一个选项。我去安装 - >模板 - >的Visual C# - >网站

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

我看到的是空的ASP.NET Web应用程序。所以,我选择了,然后期望ASP.Net项目窗口弹出,这样我可以选择网页API。然而,该对话框从未打开。

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应用程序模板?

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

推荐答案

我碰到你的问题就来了,因为我有同样的问题。当我第一次安装了Visual Studio我没有打勾的框安装Web组件。这里是我是如何解决这个问题:

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. 关闭的Visual Studio的所有实例。

  2. 运行Visual Studio安装(我找到了我的下载文件夹仍然并被命名为vs_professional.exe)。

  3. 对于VS 2013一个灰色的窗口出现类似的初次安装VS到。

  4. 出现提示时选择从选项列表中选择修改。

  5. 勾选列表项目,我认为被命名为Web开发或类似的东西。

  6. 点击更新。

  7. 一旦安装程序运行完毕后推出的Visual Studio。

在Visual Studio中选择新建项目我现在可以看到所需的模板。

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

这篇关于ASP.NET Web应用程序模板在Visual Studio 2012中失踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆