简体   繁体   English

Visual Studio社区2017-ASP.Net Web应用程序(.NET Framework)模板已损坏?

[英]Visual Studio Community 2017 - ASP.Net Web Application (.NET Framework) Template broken?

When I go to create a new Project in VS Community 2017 and choose the project type "ASP.NET Web Application (.NET Framework)": 当我在VS Community 2017中创建新项目并选择项目类型“ ASP.NET Web应用程序(.NET Framework)”时:

在此处输入图片说明

clicking ok only gives me an 'Empty' template option, and I can't add authentication or select to add references for Web Forms, MVC or Web API, the buttons and checkboxes are all disabled: 单击“确定”仅给我一个“空”模板选项,并且我无法添加身份验证或选择添加Web窗体,MVC或Web API的引用,所有按钮和复选框均被禁用:

在此处输入图片说明

I've tried removing the "ASP.NET and web development" workload and re-installing it but that hasn't helped. 我尝试删除“ ASP.NET和Web开发”工作负载并重新安装,但这并没有帮助。

Is there something wrong with my templates, in which case what can I try to restore them, or is this Microsoft's way of forcing you to use .NET Core (I see you can select .NET Framework on the configuration screen if you do select the .NET Core template)? 我的模板有问题吗,在这种情况下我可以尝试还原它们吗,还是这是Microsoft强迫您使用.NET Core的方式(如果您选择了.NET Framework,则可以在配置屏幕上选择.NET Framework。 .NET Core模板)?

Try to run Visual Studio Installer again. 尝试再次运行Visual Studio安装程序。 Then tick marks those:- 然后在标记上打勾:

Web & Cloud => ASP.NET & Web development Web和云 => ASP.NET和Web开发

Other Toolsets => .NET core cross-platform development 其他工具集 => .NET核心跨平台开发

and press Install. 然后按安装。 Hope it will works for you. 希望它对您有用。

[Visual Studio Download Link][1] [Visual Studio下载链接] [1]

[1]: https://visualstudio.microsoft.com/downloads/ Choose Community [1]: https : //visualstudio.microsoft.com/downloads/选择社区

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Visual Studio社区2013中创建ASP.NET MVC 5 Web应用程序? - How to create ASP.NET MVC 5 Web Application in Visual Studio Community 2013? 如何从 Visual Studio 2015 社区版打开新的“ASP.NET Web 应用程序”? - How to open new "ASP.NET Web Application" from visual studio 2015 community edition? (asp.net)Visual Studio 2017中缺少MVC模板 - (asp.net) MVC Template is missing in Visual Studio 2017 Visual Studio 2017 ASP.NET核心MVC模板应用程序无法添加新包 - Visual studio 2017 ASP.NET core MVC template application cannot add new packages 如何在Visual Studio 2017 ASP.NET核心Web应用程序中集成Bootstrap 4? - How to integrate Bootstrap 4 in Visual Studio 2017 ASP.NET Core Web Application? Visual Studio 2017 中的空 ASP .NET Core Web 应用程序项目 - Empty ASP .NET Core Web Application project in Visual studio 2017 将Visual Studio Community 2017 Asp.Net Core 2项目部署到远程IIS计算机 - Deploy a Visual Studio Community 2017 Asp.Net Core 2 project to remote IIS machine 在Visual Studio 2015更新3中缺少“ASP.NET核心Web应用程序(.NET核心)”模板? - missing “ASP.NET Core Web Application (.NET Core)” template in Visual studio 2015 update 3? 如何使用 Visual Studio 将 ASP.NET Web 应用程序 (.Net Framework) 发布到 FTP 服务器? - How to Publish ASP.NET Web Application (.Net Framework) with Visual Studio to FTP Server? Visual Studio 2022 - asp.net web 应用程序 - 缺少目标框架 .NET 核心 - Visual Studio 2022 - asp.net web application - Target Framework missing .NET Core
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM