.NET Core vs .NET Framework

.NET Core vs .NET Framework

.NET Core vs .NET Framework


資料來源: https://www.interviewbit.com/blog/net-core-vs-net-framework/


What is .NET Core?

    .NET Core is the latest version of Microsoft’s .NET Framework( The framework is a re-usable design platform for software systems, which provides support for code libraries and various scripting languages ), which is a free, open-source, general-purpose programming platform. It’s a cross-platform framework that works with Windows, Mac OS X, and Linux.The.NET Core Framework may be used to create a variety of apps, including mobile, desktop, online, cloud, IoT, machine learning, microservices, games, and more. .NET Core is written from scratch to make it a modular, lightweight, fast, and cross-platform Framework. 


    The.NET Foundation, a non-profit open-source organization, manages.NET Core, which was developed by Microsoft. The MIT license applies to.NET Core, which is written in C# and C++. .NET Core 1.0, the first version, was released in 2016 with restricted features. On August 14, 2017, Microsoft released.NET Core 2.0. The latest version of.NET Core is 3.0.0, which was released on March 6.


What is .NET Framework?

    Before understanding .NET Framework let’s understand what is Framework? The framework is a re-usable design platform for software systems, which provides support for code libraries and various scripting languages In simple words a framework is something that makes core programming easy. Microsoft’s Net Framework is a software development platform for building and running Windows applications.Net framework includes developer tools, programming languages, and libraries that are used to develop desktop and web applications. It is also used to build websites, web services, and games.


    The Dot Net Framework was designed to let developers construct programs that would operate on Microsoft’s Windows platform and dot net framework applications are multi-platform applications. The framework has been decided in such a way that it can be used from any of the following languages: c#, c++, Visual Basic, JScript, COBOL, etc. In the year 2002, the initial version of the dot Net framework was launched. Dot Net Framework 1.0 was the name of the version. Since then, the Microsoft dot Net framework has evolved significantly, and the most recent version is dot Net Framework 4.7.2 that is released on April 30, 2018.


什麼是 .NET 核心?

    .NET Core 是微軟最新版本的 .NET Framework(該框架是一個可重用的軟件系統設計平台,提供對代碼庫和各種腳本語言的支持),是一個免費的、開源的、通用的編程平台。它是一個跨平台框架,適用於 Windows、Mac OS X 和 Linux。.NET Core 框架可用於創建各種應用程序,包括移動、桌面、在線、雲、物聯網、機器學習、微服務、遊戲, 和更多。 .NET Core 從頭開始編寫,使其成為模塊化、輕量級、快速且跨平台的框架。


    .NET 基金會是一個非營利性開源組織,負責管理由微軟開發的 .NET Core。 MIT 許可證適用於 .NET Core,它是用 C# 和 C++ 編寫的。 .NET Core 1.0 是第一個版本,於 2016 年發布,功能受限。 2017年8月14日,微軟發布.NET Core 2.0。 .NET Core 的最新版本是 3.0.0,於 3 月 6 日發布。


什麼是 .NET 框架?

    在了解 .NET Framework 之前,讓我們先了解一下什麼是 Framework?該框架是一個可重用的軟件系統設計平台,它為代碼庫和各種腳本語言提供支持。簡單來說,框架就是讓核心編程變得簡單的東西。 Microsoft 的 Net Framework 是一個用於構建和運行 Windows 應用程序的軟件開發平台。Net 框架包括用於開發桌面和 Web 應用程序的開發人員工具、編程語言和庫。它還用於構建網站、Web 服務和遊戲。


    點網框架旨在讓開發人員構建可在微軟 Windows 平台上運行的程序,點網框架應用程序是多平台應用程序。該框架已被確定為可以從以下任何一種語言中使用:c#、c++、Visual Basic、JScript、COBOL 等。2002 年,啟動了 dot Net 框架的初始版本。 Dot Net Framework 1.0 是版本的名稱。此後,Microsoft dot Net 框架有了長足的發展,最新版本是 2018 年 4 月 30 日發布的 dot Net Framework 4.7.2。

One thought on “.NET Core vs .NET Framework

  1. .Net Core和.Net Framework的不同之處

    https://blog.alantsai.net/posts/2017/10/net-framework-see-new-core-04-net-core2-intro

    .Net Core基本上是.Net Framework的重寫,最主要目的/差異是:

    達到真的跨平台
    雖然理論上只要能夠run IL的CLR .Net 的程式就可以跨平台(例如 Mono就是一個這樣的CLR),但是微軟並沒有support。.Net Core的CLR則是有真的提供由微軟support的跨平台版本。
    更“小”的程式組合
    基本上.Net Core是一個更加模組化的平台,換句話說整體的速度和使用的資源更少。因此更符合現代化的Microservice的架構和Container模式執行的結構。
    CLR執行方式的不同
    .Net Core使用app host (dotnet cli)來吧 CoreCLR執行起來,而.Net Framework則不是用app host run起來。因此,.Net Core的console 程式發佈出來是.dll做結尾而不是.exe
    發佈模式的不同
    .Net Core有

    Framework Dependent Deployment(FDD)
    Self-contained Deployment(SCD)
    兩種模式。
    FDD和以前.Net Framework一樣,只有程式本身,需要執行的話那台電腦需要先安裝好.Net Core runtime。

    SCD則是把.Net core runtime和程式包在一起,達到不需要有安裝.Net Core runtime就可以執行。

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *