NET 标准库参考 .NETCore

NET Standard library refer .NETCore

我是 Microsoft Core 世界的新手,想创建一个针对 .NET 标准的 class 库。我正在使用 Visual Studio IDE 2017 并选择了 .NET Standard.

下列出的 class 库项目模板

当我在 .NET 标准项目结构上扩展 SDK 时,我可以看到 Microsoft.NETCore.Platform 1.1.0 作为参考。

据我了解,.NET Core、.NET Framework、Mono、Universal Windows Platform 等使用 .NET Standard 而不是其他方式。请指正。

问题:

  1. SDK下Microsoft.NETCore.Platform1.1.0参考有什么意义?

很明显是用于以下目的,

Provides runtime information required to resolve target framework, platform, and runtime specific implementations of .NETCore packages.

https://www.nuget.org/packages/Microsoft.NETCore.Platforms/

如果您查看源代码,还可以找到更多内容,

https://github.com/dotnet/corefx/blob/c2588415e91ca1d44885ac0bbe9bf8268adc4b48/pkg/Microsoft.NETCore.Platforms/readme.md

它是一个跨平台包,没有绑定到任何特定平台,但名称错误。正如您所问,“NETCore”部分令人困惑,应该删除。