[英]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.