微软正式发布 .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\/"}]}]}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章