ASP.NET Core版本7.0没有显示出来。

huangapple go评论57阅读模式
英文:

the asp.net core version 7.0 dose not showing up

问题

我安装了 Visual Studio 2019 以创建 ASP.NET Core 项目,但只有在创建 Web 应用程序项目时,它只显示 2.1 作为目标版本。

我尝试更新 Visual Studio Code 的包,并安装了 .NET SDK 7.0 和运行时 7.0,但仍然出现同样的问题,只显示 ver 2.1。

是否有什么方法可以让它显示 7.0 版本作为新项目的目标框架?

英文:

i installed visual studio 2019 for make asp.net core project and only when creating web application project it shows me only 2.1 as target version.
like in this image

i tried to update visual studiocode packages and i installed .net sdk 7.0 and runtime 7.0 and still the same problem only ver 2.1 is showing up.

this is the installed version for runtime and sdk

is there any thing i can do to make it show 7.0 version as target framework for new projects?

答案1

得分: 0

你需要使用 Visual Studio 2022。根据这里的信息,2019 年版本不支持 .NET 6 及以上版本:https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/netsdk1182

英文:

You need Visual Studio 2022. The 2019 doesn't support .NET 6 and above as you can read here: https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/netsdk1182

huangapple
  • 本文由 发表于 2023年6月12日 19:44:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/76456334.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定