无法在 Visual Studio Build Framework 中选择 .NET Core 2.2 [英] .NET Core 2.2 Can't be Selected In Visual Studio Build Framework

查看:40
本文介绍了无法在 Visual Studio Build Framework 中选择 .NET Core 2.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以前,我可以在 .NET Core 项目的属性部分中选择 .NET Core 2.2 Framework,但在最新的 Visual Studio 更新之后,我无法选择.

我尝试过的事情:

  • 修复 .NET Core 2.2 SDK 安装
  • 卸载和重新安装 .NET Core 2.2 SDK
  • 重新启动 Visual Studio
  • 重新启动我的机器
  • 创建一个全新的 .NET Core 项目

没有任何东西可以工作.从我安装最新更新之前它就可以工作的事实来看,这可能只是一个错误吗?或者有什么我想念的吗?

为了更清楚,我在最新版本的 Windows 上运行 Windows 10 Professional x64.

我从这里安装了这个版本的 .NET Core 2.2

感谢任何帮助.谢谢!

解决方案

配置 Visual Studio 2017 15.9 以使用 .NET Core SDK 的预览(在 Options 中)并重新启动 VS.

2019 年更新:

Microsoft 决定 VS2017/2019 应使用不同的 .NET Core SDK 版本,因此请确保为您的 VS 版本安装正确的版本,并在此处阅读官方公告,

https://github.com/dotnet/announcements/issues/108

您可能会在 .NET Core 发行说明中找到 SDK 版本/VS 版本表,例如 https://github.com/dotnet/core/blob/master/release-notes/2.2/2.2.4/2.2.4.md

订阅 Microsoft .NET 和 Visual Studio 团队博客是一种很好的做法,这样您就可以随时了解新事物,例如 https://blogs.msdn.microsoft.com/dotnet/2018/11/13/net-core-tooling-update-for-visual-studio-2017-version-15-9/

Previously, I was able to select the .NET Core 2.2 Framework in the properties section of the .NET Core project, but after the latest visual studio updates I haven't been able to.

Things I've tried:

  • Repairing the .NET Core 2.2 SDK installation
  • Uninstalling and Reinstalling the .NET Core 2.2 SDK
  • Restarting Visual Studio
  • Restarting my machine
  • Making a fresh .NET Core project

Nothing has been able to work. From the fact that it was working before I installed the latest updates, could it just be a bug? Or is there something that I'm missing?

For some more clarity, I'm running in Windows 10 Professional x64 on the latest version of windows.

I installed this version of .NET Core 2.2 from here

Any help is appreciated. Thanks!

解决方案

Configure Visual Studio 2017 15.9 to use the previews of .NET Core SDK (in Options) and restart VS.

Update in 2019:

Microsoft decides that VS2017/2019 should use different .NET Core SDK versions, so make sure you do install the correct versions for your VS versions, and read the official announcement here,

https://github.com/dotnet/announcements/issues/108

You might find the SDK version/VS version table in .NET Core release notes, such as https://github.com/dotnet/core/blob/master/release-notes/2.2/2.2.4/2.2.4.md

Is a good practice to subscribe to the Microsoft .NET and Visual Studio team blogs so that you can always learn the new things, like https://blogs.msdn.microsoft.com/dotnet/2018/11/13/net-core-tooling-update-for-visual-studio-2017-version-15-9/

这篇关于无法在 Visual Studio Build Framework 中选择 .NET Core 2.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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