Visual Studio 2017 目标框架中未列出 Asp Net Core 2.1 [英] Asp Net Core 2.1 not listed in Visual Studio 2017 target framework
本文介绍了Visual Studio 2017 目标框架中未列出 Asp Net Core 2.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经安装了
正如我尝试过的类似主题中所建议的:
- 同时安装 x64 和 x32 版本的 SDK
- 单独安装运行时
- 手动将SDK的安装路径添加到环境变量
PATH
有人知道怎么解决吗?
解决方案命名完全令人困惑.您需要安装 2.1.300-rc1 SDK 获取 .Net Core 2.1.
C:>dotnet --info.NET Core SDK(gemäßglobal.json"):版本:2.1.300-rc1-008673提交:f5e3ddbe73新闻报道:操作系统名称:Windows操作系统版本:10.0.16299操作系统平台:WindowsRID:win10-x64基本路径:C:Program Filesdotnetsdk2.1.300-rc1-008673主机(用于支持):版本:2.1.0-rc1提交:eb9bc92051已安装的 .NET Core SDK:2.1.300-rc1-008673 [C:Program Filesdotnetsdk]安装的 .NET Core 运行时:Microsoft.NETCore.App 2.1.0-rc1 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]要安装其他 .NET Core 运行时或 SDK:https://aka.ms/dotnet-download
I've installed the new AspNet Core 2.1 SDK - which is now official - but it's still not listed in Visual Studio 2017 target framework, oin both existing projects and new projects:
As suggested in similar topics I've tried with:
- Installing both x64 and x32 versions of the SDK
- Installing the runtime separately
- Manually adding the installation path of the SDK to the environment variable
PATH
- Manually updating an existing project (not worked because it wasn't able to find the 2.1 SDK)
- Restarting the PC
- Switching language between my native language (Italian) and English
But it's still not listed.
Reading VS infos, I got that Visual Studio version is 15.7.2 (latest) and NET framework version is 4.3.03056.
Executing
dotnet --info
from Powershell, i get this:Does anyone know how to solve that?
解决方案Naming is totally confusing. You need to install the 2.1.300-rc1 SDK to get .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 Filesdotnetsdk2.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 Filesdotnetsdk] .NET Core runtimes installed: Microsoft.NETCore.App 2.1.0-rc1 [C:Program FilesdotnetsharedMicrosoft.NETCore.App] To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download
这篇关于Visual Studio 2017 目标框架中未列出 Asp Net Core 2.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文