首页 > 解决方案 > 哪个 .NET Core SDK 用于 VS 16.4 中的 .NET Core 2.2?

问题描述

截至今天(2019 年 12 月),我应该使用以下哪些 .NET Core SDK-s 在 Visual Studio 2019 版本 16.4 中定位 .NET Core 2.2?

a) SDK 2.2.207,2019 年 11 月 19 日发布,支持 Visual Studio 2019 v16.0

b) SDK 2.2.402,2019 年 9 月 10 日发布,支持 Visual Studio 2019 v16.2

我想我应该使用 SDK 2.2.207,所以我可以使用最新的运行时(2.2.8),但令我困惑的是为什么它没有被 Visual Studio Update 自动更新?(更新到 Visual Studio 16.4 后,我目前安装了以下 SDK-s:3.1.100、2.2.402、2.1.802)

标签: .net-core

解决方案


You can basically use any SDK that vs will choose, but should stick to the lastest ones if possible to ensure you don't get compiler mismatches (e.g. when you pin the SDK for command-line builds but want to use newer compiler features).

You can build 2.2 applications with the 3.* SDKs as well, the older SDK version however are still maintained for compatibility.

Do note that .NET Core 2.2 will go out of service no December 23rd 2019 so i suggest migrating to a higher version or the 2.1 LTS version. Likely for this reason, there was no additional 2.2.403 release.


推荐阅读