.NET Core是“实施”吗? .NET标准? [英] Is .NET Core an "Implementation" of .NET Standard?

查看:86
本文介绍了.NET Core是“实施”吗? .NET标准?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于.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运行时的.NET API的正式规范。



各种.NET运行时实现了特定的.NET Standard版本。




引入.NET Standard

.NET Standard 2.0将由.NET Framework,.NET Core和Xamarin实施。对于.NET Core,这将添加许多已请求的现有API。




。NET Core引入

b
$ b


.NET Core本质上是NET Framework的分支



另一种查看方式: .NET Framework本质上有两个分支。 Microsoft提供了一个fork,并且只有Windows。另一个分支是Mono,可以在Linux和Mac上使用。




有关更多详细信息,请阅读:




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.


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


Introducing .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.


Introducing .NET Core:

.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 Core是“实施”吗? .NET标准?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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