简体   繁体   中英

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

However, when I get to the Create a Razor Web App section, there is no template in my install of VS2017.

I have both the .net core and asp.net and web dev workloads installed. Where have I gone wrong?

Open Visual Studio (assuming its 2017) and go to: Tools > Extensions and Updates

Click "ASP.Net and web development", then select the appropriate Individual Components in the right hand pane. You'll find components such as ".Net Core 2.0 Development tools" and ASP.Net web development tools"

Have you got the latest update for your Visual Studio installation?

  • Head to Add or Remove Programs
  • find 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 ?

It seems I had an OS issue that caused updates to fail. Have rebuilt the PC and all working as expected now. Very much a sledgehammer approach, but this was something fundamentally wrong with the installation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM