缺少 .NET Standard 2.0 Framework 和最新的 .NET Core SDK 2.2.1、.NET Framework 4.7.2、VS2017 15.9.3 [英] Missing .NET Standard 2.0 Framework with latest .NET Core SDK 2.2.1, .NET Framework 4.7.2, VS2017 15.9.3

查看:89
本文介绍了缺少 .NET Standard 2.0 Framework 和最新的 .NET Core SDK 2.2.1、.NET Framework 4.7.2、VS2017 15.9.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编辑修复 - 重新安装 VS 不起作用,重新安装 Windows,然后 VS 成功了……我们几乎生活在 2019 年,而这需要这些东西才能让 vs 正常工作?

EDIT FIX - Reinstalling VS did not work, reinstalling windows then VS did the trick... we live in 2019 almost and this shit is required to get vs to work properly?

我创建了一个 .NET 标准类库,它似乎指向 1.6,当我将其更改为 2.0 时,我没有在列表中看到它(见附图)

I created a .NET Standard Class library which it seems to point to 1.6, when i go to change it to 2.0, I dont see it in the list (see attached image)

另外附上我的机器和版本的最新信息,我已经安装了 .NET Core 2.2.1 x64/x86 SDK,并且我有 .NET Full Framework 4.7.2

Also attached is latest info from my machine and versions, I have installed both the .NET Core 2.2.1 x64/x86 SDKs and I have the .NET Full Framework 4.7.2

编辑 1:vs 是如何安装的

EDIT 1: how vs was installed

推荐答案

我的团队遇到了这个问题.虽然我们安装了所有 .Net Core SDK,但 VS2017 目标框架显示为 .Net Standard 1.6.经过大量搜索,我们发现安装的所有 .Net Core SDK 版本(最新到 2.2.10)都是 64 位的,只有一个 2.2.301 是 x86 版本.

My team got into this issue. Though we installed all .Net Core SDK but VS2017 targer framework was showing up to .Net Standard 1.6. After searching a lot, we found all .Net Core SDK versions installed(latest till 2.2.10) are 64 bit except one 2.2.301 which is x86 version.

命令 dotnet --info 帮助我们找到了相同的内容.在 dotnet --info 输出中,基本路径指向 C:Program Files (x86)dotnetsdk2.2.301

Command dotnet --info helped us to find the same. In dotnet --info output, Base path was pointing to C:Program Files (x86)dotnetsdk2.2.301

SDK 路径:C:Program Filesdotnetsdk

SDK paths: C:Program Filesdotnetsdk

C:Program Files (x86)dotnetsdk

C:Program Files (x86)dotnetsdk

最后,我们卸载了 x86 版本,然后环境路径重置并指向 64 位 SDK,如下图所示.现在,目标框架指向 .Net Standard 2.0.

Finally, we uninstalled the x86 version and then the Environment path reset and pointed to 64 bits SDKs as shown in below diagram. Now, targer framework is pointing to .Net Standard 2.0.

这篇关于缺少 .NET Standard 2.0 Framework 和最新的 .NET Core SDK 2.2.1、.NET Framework 4.7.2、VS2017 15.9.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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