NET Standard library refer .NETCore

随声附和 提交于 2019-12-12 06:05:36

问题


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.

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

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

Question:

  1. What is the relevance of Microsoft.NETCore.Platform 1.1.0 reference under SDK?

回答1:


Clearly it is used for the following purposes,

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

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

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

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

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.



来源:https://stackoverflow.com/questions/43544754/net-standard-library-refer-netcore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!