[英]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.