本文介绍了.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 Native
- .NET Core
什么这些之间有什么区别?
What is the difference between all of these?
我怎么知道什么时候使用合适的?
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 主要用于开发通用应用,该通用应用经过了优化,可以在任何设备和平台上运行,本机(虽然不适用于Web应用程序)
- .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之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!