.NET Core是“实施”吗? .NET标准? [英] Is .NET Core an "Implementation" of .NET Standard?
问题描述
关于.NET Core和.NET Standard如何相互关联,我仍然很困惑。
据我了解,.NET Standard是接口定义(在Katana是OWIN的实现方式上没有什么不同)。 .NET Framework将实现.NET Standard的版本。
到目前为止,这是否正确?
.NET Core在其内部捆绑了其依赖项。这些依赖项将使用.NET Standard接口的实现。可能是.NET Framework,Mono或其他。
ASP Core是.NET Core,其中引用了 Web内容。就可以从.NET Core控制台应用程序构建起来的意义上,它几乎只是一个Visual Studio模板。
我仍然很接近
最后,如果我可以创建一个新的绿色应用程序,那么.NET Core应该是最受欢迎的技术(假设我不需要
最后一个问题,我可以从.NET Core项目中引用GAC中的.NET Framework程序集吗?> em>
欢呼声
我的理解是 .NET Core
正在实施 .NET标准
。
因此 .NET Standard
更像是一个规范,而 .NET Core
是实现该规范的实际框架。
.NET Standard
也由其他框架实现,例如 .NET Framework
或 Xamarin
(和 ASP.NET Core
构建在 .NET Core
的顶部。)
.NET Standard与.NET Core有何不同?
.NET标准是涵盖.NET平台必须实现哪些API的规范。
.NET Core是一个具体的.NET平台,并实现.NET标准。
.NET标准是旨在用于所有.NET运行时的.NET API的正式规范。
各种.NET运行时实现了特定的.NET Standard版本。
.NET Standard 2.0将由.NET Framework,.NET Core和Xamarin实施。对于.NET Core,这将添加许多已请求的现有API。
b
$ b
.NET Core本质上是NET Framework的分支
另一种查看方式: .NET Framework本质上有两个分支。 Microsoft提供了一个fork,并且只有Windows。另一个分支是Mono,可以在Linux和Mac上使用。
有关更多详细信息,请阅读:
- 。NET标准常见问题解答
- 。NET Standard (该表列出了.NET Standard的所有版本和支持的平台)
- 引入.NET Standard
- .NET Core介绍
I'm still pretty confused about how .NET Core and .NET Standard relate to each other.
From what I understand, .NET Standard is an interface definition (not dissimilar in the way the Katana is an implementation of OWIN). .NET Framework will implement versions of .NET Standard.
Is this correct so far?
.NET Core bundles up its dependencies inside it. Those dependencies will use the .NET Standard interface's implementation. That may be the .NET Framework, Mono or something else.
ASP Core is .NET Core with "Web" stuff referenced. Pretty much just a Visual Studio template in the sense that it can all by built up from a .NET Core console application.
Am I still close to on track?
Finally, if I can creating a new, green-field application then .NET Core should be the favoured technology (assuming that I don't need any of the .NET Framework only assemblies).
Last question, can I reference .NET Framework assemblies in the GAC from a .NET Core project?
Cheers
My understanding is that the .NET Core
is implementing the .NET Standard
.
So .NET Standard
is more like a specification and .NET Core
is an actual framework which implements that specification.
.NET Standard
is also implemented by other frameworks like as .NET Framework
or Xamarin
(and ASP.NET Core
which is built on the top of .NET Core
).
Here is offficial explanation:
How is .NET Standard different from .NET Core?
.NET Standard is a specification that covers which APIs a .NET platform has to implement.
.NET Core is a concrete .NET platform and implements the .NET Standard.
The .NET Standard is a formal specification of .NET APIs that are intended to be available on all .NET runtimes.
The various .NET runtimes implement specific versions of .NET Standard.
.NET Standard is a set of APIs that all .NET platforms have to implement. This unifies the .NET platforms and prevents future fragmentation.
.NET Standard 2.0 will be implemented by .NET Framework, .NET Core, and Xamarin. For .NET Core, this will add many of the existing APIs that have been requested.
.NET Core is essentially a fork of the NET Framework
Another way to look at it: The .NET Framework has essentially two forks. One fork is provided by Microsoft and is Windows only. The other fork is Mono which you can use on Linux and Mac.
For more details please read:
- .NET Standard FAQ
- .NET Standard (The table lists all versions of .NET Standard and the platforms supported)
- Introducing .NET Standard
- Introducing .NET Core
这篇关于.NET Core是“实施”吗? .NET标准?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!