NET 标准库参考 .NETCore

NET 标准库参考 .NETCore

问题描述:

我是 Microsoft Core 世界的新手,想创建一个面向 .NET 标准的类库.我使用的是 Visual Studio IDE 2017 并选择了 .NET Standard 下列出的类库项目模板.

I am new to the Microsoft Core world and wanted create a class library that targets the .NET standard. I was using the Visual Studio IDE 2017 and picked a class library project template listed under .NET Standard.

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

When I expand the SDK on the .NET standard project structure, I could see Microsoft.NETCore.Platform 1.1.0 as reference.

根据我的理解,.NET Core、.NET Framework、Mono、Universal Windows Platform 等使用 .NET Standard 而不是其他方式.请纠正我.

As per my understanding, .NET Core, .NET Framework, Mono, Universal Windows Platform, etc. uses .NET Standard and not other-way around. Please correct me.

问题:

  1. SDK 下的 Microsoft.NETCore.Platform 1.1.0 参考有什么相关性?

很明显它用于以下目的,

Clearly it is used for the following purposes,

提供解析 .NETCore 包的目标框架、平台和运行时特定实现所需的运行时信息.

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

https://www.nuget.org/packages/Microsoft.NETCore.平台/

如果你检查源代码,可以找到更多,

and more can be found if you check the source code,

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

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

It is a cross platform package, not bind to any specific platform, but with a wrong name. As you asked, "NETCore" part is confusing and should be removed.