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

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

问题描述

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



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



详细信息



< Visual Studio 15.7的最新更新到15.8.4之后。.netcore 2.1或更高版本已从目标框架列表中消失。



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



在下面检查了解决方案(我已经在这里找到解决方案了!)





更新1:删除了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核心&gt; 2.1作为目标框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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