[英]If a library is targeting .NET Standard 2.0 is my only option to use Visual Studio 2017?
[英]How to install .net standard 2.0 into Visual studio 2017
尝试在 Visual Studio 2017 中构建 Math.net Numerics 时,我得到以下 4 个缺失的依赖项
.NETFramework 4.0
.NETFramework 4.6.1
.NETStandard 1.3
.NETStandard 2.0
我似乎找不到这些 SDK 或二进制库或任何有关如何安装它们的信息。 我需要安装 4 个独立的框架吗? 还是只有一个 SDK? 为什么我需要.NetStandard 2.0 和 1.3 或框架 4.0 和 4.6.1?
有人可以指出我需要安装的链接吗? 谢谢
.NET Standard 2.0 comes with any installation of .NET Core 2.x SDK, this means including .NET Core runtime of 2.0, 2.1, and 2.2.
请查阅 .NET 标准的官方文档: https://docs.microsoft.com/en-us/dotnet/standard/net-standard
Since October 2019, the recommended way to have .NET Standard 2.0 is by having synchronized with .NET Core lifecycle, therefore it is recommended to have at least the LTS version of .NET Core 2.1 SDK or .NET Core 2.2.
这很重要,因为不再支持 .NET Core 2.0,因此强烈建议始终使用 .NET Core 2.x 的最低支持版本。 为了确保更长时间的支持,请使用 .NET Core 2.1 而不是 2.2,因为 .NET Core 2.1 是 LTS 版本,而 .NET Core 2.2 不是。
这是关于.NET核心支持政策的官方文章: https://dotnet.microsoft.com/platform/support/policy/dotnet-core
笔记:
更新 1:(关于与 VS 2017 相关的 SDK 版本)
有关更多信息,另请参阅此 GitHub 问题: https://github.com/dotnet/sdk/issues/3124
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.