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

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

问题描述

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

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.

我尝试过的事情:

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

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

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?

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

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

我从此处安装了此版本的.NET Core

感谢您的帮助.谢谢!

推荐答案

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

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

2019年更新:

Microsoft决定VS2017/2019应该使用不同的.NET Core SDK版本,因此请确保为VS版本安装正确的版本,并在此处阅读正式声明,

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

您可能会在.NET Core发行说明中找到SDK版本/VS版本表,例如

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

订阅Microsoft .NET和Visual Studio团队博客是一个好习惯,这样您就可以随时学习新内容,例如

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生成框架中选择.NET Core 2.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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