简体   繁体   English

缺少 ASP.net Core Web 应用程序模板

[英]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 安装的最新更新?

  • Head to Add or Remove Programs前往添加或删除程序
  • find Visual Studio找到 Visual Studio
  • Click Modify单击修改
  • Allow the installer to update允许安装程序更新
  • Install any updates that are missing安装任何缺少的更新

在此处输入图片说明

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.

相关问题 visual studio 2017“ ASP.NET Core Web应用程序(.NET Core)”模板丢失 - visual studio 2017 “ASP.NET Core Web Application (.NET Core)” template missing Visual Studio 2019 中缺少 ASP.NET 核心 Web 应用程序模板和所有 ASP.Net 核心模板 - Missing ASP.NET Core Web Application Template and all ASP.Net Core Templates in Visual Studio 2019 Visual Studio 2012中缺少ASP.NET Web应用程序模板 - ASP.NET Web Application template missing in Visual Studio 2012 asp.net Web 应用程序模板缺少 Visual Studio 2017 - asp.net web application template is missing visual studio 2017 在Visual Studio 2010中缺少asp.net Web应用程序模板 - Missing asp.net web application template in Visual Studio 2010 缺少ASP.NET Core Web应用程序(.NET Core)不同和缺少的模板 - Missing ASP.NET Core Web Application (.NET Core) different and missing templates JWT 和 asp.net(核心)Web 应用程序 - JWT and asp.net (core) web application “ ASP.NET Web应用程序”模板不存在 - 'ASP.NET Web Application' template not there Visual Studio 2022 - asp.net web 应用程序 - 缺少目标框架 .NET 核心 - Visual Studio 2022 - asp.net web application - Target Framework missing .NET Core Visual Studio 2019 中缺少 ASP.NET 核心 Web 应用程序 - Missing ASP.NET Core Web Application from Visual Studio 2019
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM