Asp Net Core 2.1 未在 Visual Studio 2017 目标框架中列出
Asp Net Core 2.1 not listed in Visual Studio 2017 target framework
我已经安装了 the new AspNet Core 2.1 SDK - 现在是官方的 - 但它仍然没有在 Visual Studio 2017 目标框架中列出,在现有项目和新项目中:
正如我尝试过的类似主题中的建议:
- 安装 x64 和 x32 版本的 SDK
- 单独安装运行时
- 手动将SDK的安装路径添加到环境变量中
PATH
- Manually updating an existing project(无法找到 2.1 SDK)
- 正在重启电脑
- 在我的母语(意大利语)和英语之间切换语言
但是还是没有上市
阅读 VS 信息,我知道 Visual Studio 版本是 15.7.2(最新),NET 框架版本是 4.3.03056。
从 Powershell 执行 dotnet --info
,我得到这个:
有人知道怎么解决吗?
命名完全混乱。您需要安装 2.1.300-rc1 SDK 才能获得 .Net Core 2.1。
C:\>dotnet --info
.NET Core SDK (gemäß "global.json"):
Version: 2.1.300-rc1-008673
Commit: f5e3ddbe73
Laufzeitumgebung:
OS Name: Windows
OS Version: 10.0.16299
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk.1.300-rc1-008673\
Host (useful for support):
Version: 2.1.0-rc1
Commit: eb9bc92051
.NET Core SDKs installed:
2.1.300-rc1-008673 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.NETCore.App 2.1.0-rc1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
我已经安装了 the new AspNet Core 2.1 SDK - 现在是官方的 - 但它仍然没有在 Visual Studio 2017 目标框架中列出,在现有项目和新项目中:
正如我尝试过的类似主题中的建议:
- 安装 x64 和 x32 版本的 SDK
- 单独安装运行时
- 手动将SDK的安装路径添加到环境变量中
PATH
- Manually updating an existing project(无法找到 2.1 SDK)
- 正在重启电脑
- 在我的母语(意大利语)和英语之间切换语言
但是还是没有上市
阅读 VS 信息,我知道 Visual Studio 版本是 15.7.2(最新),NET 框架版本是 4.3.03056。
从 Powershell 执行 dotnet --info
,我得到这个:
有人知道怎么解决吗?
命名完全混乱。您需要安装 2.1.300-rc1 SDK 才能获得 .Net Core 2.1。
C:\>dotnet --info
.NET Core SDK (gemäß "global.json"):
Version: 2.1.300-rc1-008673
Commit: f5e3ddbe73
Laufzeitumgebung:
OS Name: Windows
OS Version: 10.0.16299
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk.1.300-rc1-008673\
Host (useful for support):
Version: 2.1.0-rc1
Commit: eb9bc92051
.NET Core SDKs installed:
2.1.300-rc1-008673 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.NETCore.App 2.1.0-rc1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download