VS2017 - 缺少 .net 核心 >2.1 作为目标框架 [英] VS2017 - Missing .net core > 2.1 as target framework

查看:34
本文介绍了VS2017 - 缺少 .net 核心 >2.1 作为目标框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

找到解决方案!花了一段时间,安装了所有 sdks 和所有运行时,然后重新安装了我想要的最新版本!

目标,将 netcore 2.1 或更高版本作为 Visual Studio 中的下拉选项.我已经看过可能重复的问题了!

详情

visual studio 15.7 到 15.8.4 上次更新后,.net core 2.1 或更高版本已从目标框架列表中消失.

我查看了其他解决方案,如下所示.他们没有帮助,因为我在阳光下安装了每个版本.请参阅以下屏幕.

检查以下解决方案(我已经在这里寻找解决方案!):

UPDATE1:删除了 2.2 预览版(未解决,2.1 仍然缺失)

解决方案

用户说,我的评论 解决了问题.所以我会把它作为答案发布:

在图片上我看到很多已安装的 .Net Core SDK,也许 Visual Studio 安装的 SDK 有很多问题.

因此,将所有旧 SDK 文件夹(1.0 预览版、2.0、2.1 除 2.1.402 外)移出此文件夹到备份位置,然后再次启动 Visual Studio.

Solution found! Took awhile, installed ALL sdks, and ALL runtimes then reinstalled latest version I wanted!

Goal, Have netcore 2.1 or greater as a dropdown option in visual studio. I've looked at possible duplicates questions already!

Details

After the last update of visual studio 15.7 to 15.8.4 .net core 2.1 or greater has disappeared from the target framework list.

I looked at other solutions as seen below. They were not helpful as I installed every version under the sun. See below screens.

Checked below for solutions (I already looked for solutions here!): VS2017 : Target framework drop down does not show .NET Core 2.1 option

The current .NET SDK does not support targeting .NET Core 2.1. target .NET Core 2.0 or lower or use a vs of the .NET SDK that support NET Core 2.1

Referenced screens:

UPDATE1: Removed 2.2 preview (NOT SOLVED, 2.1 is still missing)

解决方案

The user said, that my comment fixed the issue. So I'll post it as answer:

On the picture I see a lot of installed .Net Core SDKs, maybe Visual Studio has some issues with so many installed SDKs.

So move all old SDK folders (1.0 preview, 2.0, 2.1 except 2.1.402) out of this folder to a backup location and launch Visual Studio again.

这篇关于VS2017 - 缺少 .net 核心 >2.1 作为目标框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆