国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 開發(fā)設(shè)計 > 正文

.NET Core 和 .NET Framework 之間的關(guān)系

2019-11-17 02:01:13
字體:
供稿:網(wǎng)友

.NET Core 和 .NET Framework 之間的關(guān)系

引用一段描述:Understanding the relationship between .NET Core and the .NET Framework。

.NET Core and the .NET Framework have (for the most part) a subset-superset relationship. .NET Core is named "Core" since it contains the core features from the .NET Framework, for both the runtime and framework libraries. For example, .NET Core and the .NET Framework share the GC, the JIT and types such as String and List<T>. We'll continue imPRoving these components for both .NET Core and .NET Framework.

.NET Core was created so that .NET could be open source, cross platform and be used in more resource-constrained environments. We have also published a subset of the .NET Reference Source under the MIT license, so that you and the community can port additional .NET Framework features to .NET Core.


上面這兩段話,最重要的是前面兩句,.NET Core 和 .NET Framework 之間的關(guān)系,就是“subset-superset”,可以理解為子集的關(guān)系,.NET Framework 是一個大的概念,.NET Core 是從它里面分離出來的 Core(核心)部分,dudu 之前有個比喻:.NET Framework 是 Unix,.NET Core 是 linux,其實這個比喻總感覺不太恰當(dāng),這樣比喻的觀點是 .NET Core 是從 .NET Framework 演化而來,有點像父類-子類關(guān)系,而不是子集關(guān)系。

回答園友的幾個問題:

1. .net framework 4.6 完全包括 .net core 5 嗎?也就是說用 .net core 5 寫的代碼,能直接使用 .net framework 4.6 編譯嗎?

--完全包括(4.6 是 .NET Framework 版本號,并不是 .NET Framework 基礎(chǔ)類庫版本號),.NET Framework 是大的概念,編譯是編譯器做的工作,當(dāng)然概念中包含編譯器,也可以說可以編譯。

2. 除了 aps.net 外,.net core 5 還包括了哪些 .net framework 4.6 中的特性?WF 包括嗎?WCF 包括嗎?windows form 和 wpf 應(yīng)該不包括吧?

--現(xiàn)在的 .NET Core 可以理解為在 GitHub 中的:corefx 和 coreclr,Web Forms 不包含,WCF 只包含客戶端,windows form 暫沒看到,wpf 不支持。

3. 為什么 .net core 直接就到 5 了,而沒有和 .net framework 用同樣的版本號?

--.NET Core 和 .NET Framework 是子集關(guān)系,所以版本號是獨立的。

參考:.NET Core與.NET Framework、Mono之間的關(guān)系


發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 吉水县| 贡嘎县| 阜城县| 启东市| 洪洞县| 文成县| 泾阳县| 威宁| 井研县| 丰城市| 治县。| 临猗县| 武宣县| 古浪县| 保德县| 肇源县| 乌兰察布市| 乐陵市| 南汇区| 斗六市| 清新县| 买车| 扬州市| 伊吾县| 阳城县| 桐乡市| 宜阳县| 同德县| 晋城| 元朗区| 抚顺县| 中牟县| 炎陵县| 衡南县| 兴业县| 枞阳县| 南昌县| 布拖县| 隆林| 贵德县| 汉源县|