简体   繁体   English

.NET Core SDK与在.NET Framework项目中使用.NET Standard库有什么关系?

[英]How is the .NET Core SDK related to using .NET Standard libraries in .NET Framework projects?

The .NET implementation support table says that .NET Framework 4.6.1 implements .NET Standard 2.0. .NET实现支持表说.NET Framework 4.6.1实现了.NET Standard 2.0。 I understand this means I can reference libraries targeting .NET Standard 2.0 in a project targeting .NET Framework 4.6.1, and indeed I can add such a NuGet package to my project. 我知道这意味着我可以在针对.NET Framework 4.6.1的项目中引用针对.NET Standard 2.0的库,并且确实可以将此类NuGet包添加到我的项目中。

However, the table refers to .NET Framework as ".NET Framework (with .NET Core 2.0 SDK)". 但是,该表将.NET Framework称为“ .NET Framework(带有.NET Core 2.0 SDK)”。 How is .NET Core related to this? .NET Core与这有何关系? Is this what Microsoft refers to when they speak of "tooling", eg the Visual Studio 15.3 update? 微软在谈到“工具”(例如Visual Studio 15.3更新)时指的是这吗? If so, I assume build servers need to be updated to support the scenario from the first paragraph, is that correct? 如果是这样,我认为需要更新构建服务器以支持第一段中的方案,对吗?

Yes, previously .NET Framework 4.6.1 only supported .NET Standard from 1.0 to 1.4, but using the new tooling (.NET Core 2.0 SDK) it supports all .NET Standard versions. 是的,以前的.NET Framework 4.6.1仅支持1.0到1.4的.NET Standard,但是使用新工具(.NET Core 2.0 SDK)时,它支持所有.NET Standard版本。 The .NET Core SDK has targets and refs and libraries necessary to make the .NET Standard library work in a .NET Framework application. .NET Core SDK具有使.NET Standard库在.NET Framework应用程序中工作所必需的目标,引用和库。 The Visual Studio 15.3 update doesn't include the new tooling. Visual Studio 15.3更新不包括新工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在.net核心和.net框架中使用.net标准包 - Using a .net standard package in .net core and .net framework .NET Core SDK 2.2.1 和 .NET Framework 4.7.2 缺少 .NET Standard 2.0 Framework - Missing .NET Standard 2.0 Framework with .NET Core SDK 2.2.1 & .NET Framework 4.7.2 在针对.NET Framework 4.7的WebJob中使用.NET Core 2.0库 - Using .NET Core 2.0 Libraries in WebJob Targeting .NET Framework 4.7 .net 标准库在 .net 核心中失败,但在框架中失败 - .net standard library fails in .net core but not in framework 在VBA中使用标准.Net库 - Using standard .Net libraries with VBA .NET Framework、.NET Standard、.NET Core 和 .NET 之间的差异 5 - Difference between .NET Framework, .NET Standard, .NET Core and .NET 5 是否有任何快速方法可以将.net框架项目更改为.net核心项目? - Is there any quick way to change .net framework projects to .net core projects? .NET 框架? 还是 .NET 核心? 还是 .NET 标准? 或者以上都没有? - .NET Framework? Or .NET Core? Or .NET Standard? Or none of the above? 如何在不使用 Sdk 样式项目的 .NET 项目上运行 Coverlet? - How to run coverlet on .NET projects not using the Sdk style projects? .NET Core和.NET Standard项目不进行增量构建 - .NET Core and .NET Standard projects don't do an incremental build
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM