简体   繁体   English

基类库与.NET标准之间的关系

[英]Relationship between Base Class Library and .NET Standard

A rookie question: .Net Standard set of APIs are a "subset" of a .NET's Base Class Library (BCL) implementation, like Mono? 一个新手问题:.Net标准的API集是.NET的基类库(BCL)实现的“子集”,例如Mono? That is, a BCL is bigger set than .NET Standard's set of APIs? 也就是说,BCL的集合大于.NET Standard的API集合吗?

Yes, .NET Standard is a subset of .NET Framework's class library. 是的,.NET Standard是.NET Framework类库的子集。 Simply said, sorry for the simplification, .NET Framework was here many years ago, but only for Windows. 简而言之,为简化起见,.NET Framework出现在很多年前,但仅适用于Windows。 Now they try to provide .NET for other platforms but not everything is so easy, so they are adding piece by piece. 现在,他们试图为其他平台提供.NET,但并非一切都那么容易,因此他们正在逐步添加。 This multiplatform standard is called .NET Standard and is the same everywhere, not just for Windows like the good old .NET Framework. 这种多平台标准称为.NET标准,并且在各个地方都是相同的,而不仅仅是适用于Windows的旧版.NET Framework。

Also note that .NET Standard 2.0 is much more closer to .NET Framework's library than .NET Standard 1.0 was. 还要注意,.NET Standard 2.0比.NET Standard 1.0更接近.NET Framework的库。 (That 1.0 was quite empty, I'd say, but this is just a personal opinion.) (我会说1.0是非常空白的,但这只是个人观点。)

在此处输入图片说明 .NET Standart defines uniform set of BCL APIs for all .NET implementations to implement, independent of workload. .NET Standart为所有.NET实现定义了统一的BCL API集,以独立于工作负载实现。 It is the set of fundamental APIs (generally known as base class library or BCL). 它是一组基本API(通常称为基类库或BCL)。

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

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