[英]ASP.net Core Web Application Template is missing
I am trying to follow this tutorial: https://docs.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/razor-pages-start我正在尝试遵循本教程: https : //docs.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/razor-pages-start
However, when I get to the Create a Razor Web App section, there is no template in my install of VS2017.但是,当我进入“创建 Razor Web 应用程序”部分时,我安装的 VS2017 中没有模板。
I have both the .net core and asp.net and web dev workloads installed.我同时安装了 .net 核心和 asp.net 以及 Web 开发工作负载。 Where have I gone wrong?我哪里错了?
Open Visual Studio (assuming its 2017) and go to: Tools > Extensions and Updates打开 Visual Studio(假设是 2017)并转到:工具 > 扩展和更新
Click "ASP.Net and web development", then select the appropriate Individual Components in the right hand pane.单击“ASP.Net 和 Web 开发”,然后在右侧窗格中选择适当的单个组件。 You'll find components such as ".Net Core 2.0 Development tools" and ASP.Net web development tools"您会找到诸如“.Net Core 2.0 开发工具”和“ASP.Net Web 开发工具”之类的组件
Have you got the latest update for your Visual Studio installation?您是否获得了 Visual Studio 安装的最新更新?
On top of that, do you have the latest version of the .NET Core SDK ?最重要的是,你有最新版本的.NET Core SDK吗?
It seems I had an OS issue that caused updates to fail.我似乎遇到了导致更新失败的操作系统问题。 Have rebuilt the PC and all working as expected now.已经重建了 PC,现在一切都按预期工作了。 Very much a sledgehammer approach, but this was something fundamentally wrong with the installation.非常大锤的方法,但这是安装的根本错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.