Visual Studio 2017 缺少 ASP.NET Web 应用程序模板

5
我有Visual Studio 2017企业版,但缺少ASP.NET Web应用程序模板。我的计算机装有ASP.NET Core 2。

enter image description here

enter image description here

enter image description here

这里是已安装的组件

enter image description here

它曾经在那里,但不知道它们是如何被移除的。

请建议我如何查看Web应用程序模板和ASP.NET MVC模板?

谢谢


你尝试过运行Visual Studio安装程序并检查所有已安装的选项,或者尝试修复吗? - Darthchai
请查看更新的问题,谢谢。 - Asif Hameed
从主安装窗口点击“更多”,然后选择“修复”以尝试修复您的安装。 - Darthchai
2个回答

3
当您选择Web项目类型并单击“确定”后,将进入一个对话框,可让您选择Web项目类型: 对于.Net Framework:

enter image description here

针对 .Net Core:

enter image description here


0

我在Visual Studio 2019中遇到了同样的问题,升级/修复并没有起作用。然而,有一个非常容易使用且需要比尝试修复VS模板更少时间的dotnet new。例如:

  • 默认项目创建(预览)

    dotnet new mvc --dry-run
    
  • 有关各种选项的帮助,例如身份验证(无、个人等)

    dotnet new mvc --help
    

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接