.NET Framework 4.6、.Net Native 和 .Net Core 之间的区别 [英] Difference between .NET Framework 4.6, .Net Native and .Net Core

查看:57
本文介绍了.NET Framework 4.6、.Net Native 和 .Net Core 之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在几乎所有未来的 .NET 框架讨论中都会看到以下内容:

I see the following in almost every future .NET framework discussion:

  • .NET Framework 4.6(完整的 .Net 框架)
  • .NET 原生
  • .NET 核心

所有这些有什么区别?

我怎么知道什么时候使用合适的?

How do I know when to use the appropriate one?

推荐答案

翻遍了各种链接和视频,整体上发现了一张有趣的图:

After going through various links and videos, I found an interesting picture as a whole:

从上面,我们可以很容易地推断出以下内容:

From the above, we could easily deduce the following:

  • .NET Framework 4.6 是与 .NET 相关的所有内容的完整框架,但缺少库和运行时针对多平台(Windows、Linux 和 Mac)和云部署进行了优化
  • .NET Core 另一方面是 .NET Framework 4.6 的一个子集,主要针对多平台和云部署进行了优化
  • .NET Native 主要用于开发通用应用程序,这些应用程序将经过优化以在任何设备和平台上运行,本机(但不适用于网络应用程序)
  • .NET Framework 4.6 is a full framework for everything related to .NET, but lacks libraries & runtime optimized for multi-platform (Windows, Linux and Mac) and cloud deployments
  • .NET Core on the other hand is a subset of .NET Framework 4.6 which is mainly optimized for multi-platform and cloud deployments
  • .NET Native is mainly used to develop Universal Apps which will be quite optimized to run on any device and platform, natively (not for the web apps though)

有趣的一点是 ASP.NET:

An interesting point is ASP.NET:

  • 如果我们需要最大程度的向后兼容性(比如 Web 表单或 aspx 支持),我们需要使用 .NET Framework 4.6
  • 如果我们开发 MVC、Web API 或 Razor 网页,那么我们可以在 .NET Framework 4.6 或 .NET Core 环境中部署这些 Web 应用

这篇关于.NET Framework 4.6、.Net Native 和 .Net Core 之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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