简体   繁体   English

.NET Framework、.NETportable 和 .NET Standard

[英].NET Framework, .NETportable and .NET Standard

What is actually the difference between these three?这三者之间实际上有什么区别? I understand .NET portable is obsolete, pretty much, but what about the other two.我知道 .NET 可移植已经过时了,但其他两个呢。

.NET Standard is an interface while .NET Framework is an implementation of that interface. .NET Standard 是一个接口,而 .NET Framework 是该接口的实现。 NET Core is another implementation of NET Standard. NET Core 是 NET Standard 的另一种实现。 This makes it so that when creating libraries you can target NET Standard instead of any of the above mentioned implementations making the library available to both NET Framework and NET Core.这使得在创建库时,您可以针对 NET Standard 而不是上述任何实现,使库可用于 NET Framework 和 NET Core。

Actually it looks to me that .NETStandard is the formal standard to which .NETFramework, and lately .NETCore, adheres.实际上,在我看来 .NETStandard 是 .NETFramework 以及最近的 .NETCore 所遵循的正式标准。

To quote from here: https://docs.microsoft.com/en-us/dotnet/standard/net-standard从这里引用: https : //docs.microsoft.com/en-us/dotnet/standard/net-standard

The .NET Standard is a formal specification of .NET APIs that are intended to be available on all .NET implementations. .NET Standard 是 .NET API 的正式规范,旨在用于所有 .NET 实现。

The .NET Framework 4.6 implements .NET Standard 1.3, which means that it exposes all APIs defined in .NET Standard versions 1.0 through 1.3. .NET Framework 4.6 实现了 .NET Standard 1.3,这意味着它公开了 .NET Standard 1.0 到 1.3 版中定义的所有 API。 Similarly, the .NET Framework 4.6.1 implements .NET Standard 1.4, while .NET Core 1.0 implements .NET Standard 1.6.同样,.NET Framework 4.6.1 实现了 .NET Standard 1.4,而 .NET Core 1.0 实现了 .NET Standard 1.6。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM