NET标准库参考.NETCore [英] NET Standard library refer .NETCore

查看:128
本文介绍了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,通用Windows平台等会使用.NET标准而不是其他方式。请纠正我。

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.Platforms/

如果您检查以下内容,则会发现更多内容源代码

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

> https://github.com/dotnet/corefx/blob/c2588415e91ca1d44885ac0bbe9bf8268adc4b48/pkg/Microsoft.NETCore.Plat form / 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.

这篇关于NET标准库参考.NETCore的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆