微軟正式發佈 .NET 6 LTS版本

{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"“歡迎使用 .NET 6。今天的發佈是 .NET 團隊和社區一年多來努力的結果。”當地時間11月8日,微軟.NET 團隊項目經理Richard Lander在其"},{"type":"link","attrs":{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-net-6\/","title":"xxx","type":null},"content":[{"type":"text","text":"博文"}]},{"type":"text","text":"中寫道。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"此次.NET 6的推出對於微軟的開發平臺來說意義重大,因爲 .NET 6 是自 2019 年 12 月發佈的 .NET Core 3.1 以來的第一個 LTS 版本。 LTS 版本計劃每兩年發佈一次,中間有短期版本。當前的 .NET 5.0 將在 2022 年年中停止支持。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.geekbang.org\/infoq\/f4\/f453aae5de566d59666ba6bf6687808d.png","alt":null,"title":null,"style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"與此同時推出的還有 Visual Studio 2022。Visual Studio 2019 不支持使用 .NET 6 進行開發。想要使用 .NET 6 的 Visual Studio 開發人員必須立即升級到 Visual Studio 2022。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":".NET 和 Visual Studio之間的關係一直存在爭議,前陣子微軟決定刪除即將發佈的.NET 6 中 Hot Reload(熱重載)的一個關鍵部分,該功能允許開發者在應用運行時修改源代碼,並立即查看結果。對於一些競爭對手(Dart 和 Flutter)而言,這是很大的賣點,微軟一直致力於將這項功能引入.NET 和 Visual Studio。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"在最初的計劃中,微軟對該項目的描述中提到“致力於將 Hot Reload 帶給儘可能多的.NET 開發人員”,但最後微軟決定刪除其中的關鍵部分,將整個變化限制在 Windows 和 Visual Studio 平臺,而不是開放並跨多個平臺可用。很快,該決定在開源社區遭到"},{"type":"link","attrs":{"href":"https:\/\/mp.weixin.qq.com\/s\/DmsTY65ohD03i24NK0lM9w","title":"xxx","type":null},"content":[{"type":"text","text":"強烈抗議"}]},{"type":"text","text":",最終還是被微軟撤銷了。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"在博文中,微軟宣稱“性能有了巨大的提升”,並看到了“在微軟託管雲服務的成本降低”的好處。據稱, .NET 6 的開發過程有上萬次Git提交,作爲 LTS 長期支持版本,.NET 6 將會獲得 "},{"type":"link","attrs":{"href":"https:\/\/github.com\/dotnet\/core\/blob\/main\/releases.md","title":"","type":null},"content":[{"type":"text","text":"3 年的技術支持"}]},{"type":"text","text":"。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"下載地址:"},{"type":"link","attrs":{"href":"https:\/\/dotnet.microsoft.com\/download\/dotnet\/6.0","title":"","type":null},"content":[{"type":"text","text":"https:\/\/dotnet.microsoft.com\/download\/dotnet\/6.0"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"據悉,.NET 6 是首個原生支持蘋果芯片 (Arm64) 的版本,並且針對 Windows Arm64 進行了改進。其它亮點方面,.NET 團隊構建了一個新的動態配置文件引導優化 (PGO) 系統,該系統可提供僅在運行時纔會進行的深度優化。此外,.NET 6 使用 dotnet monitor 和 OpenTelemetry 改進了雲診斷、提供更強大和更高效的 WebAssembly 支持,以及添加了用於 HTTP\/3、JSON 處理、數學和直接操作內存的新 API。C# 10 帶來了語言改進,例如記錄結構 (record structs)、隱式使用和新的 lambda 功能,同時編譯器添加了增量源代碼生成器。 F# 6 新特性包括基於 task 的異步、管道調試和多項性能改進。使用 ASP.NET Core 構建的單頁應用程序現在使用了更靈活的模式,可以與 Angular、React 和其他流行的前端 JavaScript 框架一起使用。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"若想進一步瞭解更多更具體的改進和提升,可以查看官方博文(底下有評論說,這可能是他讀過最長的博文):"},{"type":"link","attrs":{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-net-6\/","title":"","type":null},"content":[{"type":"text","text":"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-net-6\/"}]}]}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章