作者:David Ortinau
排版:Rani Sun
今天,我们很高兴地宣布 .NET MAUI 在 .NET 8 Release Candidate 1 中已经可用,该版本带有适用于生产应用程序的正式许可证,因此您可以放心地将此版本用于生产环境。我们在 .NET 8 中进行的 .NET MAUI 工作的主题是代码质量。此版本还引入了对App SDK Xcode 15 beta 的初步支持。
质量改进
37 名开发人员为本版本做出了贡献,我们感谢大家的辛勤工作,包括首次贡献者cat0363, Salar K, Mausam Shrestha, Diana Soltani, Emanuel Fernandez Dell’Oca 和 John Hollander。
此版本的亮点:
内存泄漏解决方案
解决了在 iOS 平台上多个 UI 控件内存泄漏的问题。这些修复可确保提升内存管理和应用程序稳定性。具体来说,修复了 Editor、Entry、MauiDoneAccessoryView、RefreshView、SwipeView、TimePicker、Picker 和 GraphicsView 中的内存泄漏问题。
(#16348, #16349, #16380, #16384, #16532, #16589, #16265, #16605, #16614, #16685)。
#16348
https://github.com/dotnet/maui/pull/16348
#16349
https://github.com/dotnet/maui/pull/16349
#16380
https://github.com/dotnet/maui/pull/16380
#16384
https://github.com/dotnet/maui/pull/16384
#16532
https://github.com/dotnet/maui/pull/16532
#16589
https://github.com/dotnet/maui/pull/16589
#16265
https://github.com/dotnet/maui/pull/16265
#16605
https://github.com/dotnet/maui/pull/16605
#16614
https://github.com/dotnet/maui/pull/16614
#16685
https://github.com/dotnet/maui/pull/16685
UI 控件改进
解决了多个平台上各种 UI 控件问题,包括 CheckBox、RefreshView、SwipeItem、Label 和 Button。这些改进有助于实现更顺畅的应用交互。
(#16376, #16384, #15883, #16387, #16410, #16458, #16385, #16532, #16589, #16605, #16265)。
#16376
https://github.com/dotnet/maui/pull/16376
#16384
https://github.com/dotnet/maui/pull/16384
#15883
https://github.com/dotnet/maui/pull/15883
#16387
https://github.com/dotnet/maui/pull/16387
#16410
https://github.com/dotnet/maui/pull/16410
#16458
https://github.com/dotnet/maui/pull/16458
#16385
https://github.com/dotnet/maui/pull/16385
#16532
https://github.com/dotnet/maui/pull/16532
#16589
https://github.com/dotnet/maui/pull/16589
#16605
https://github.com/dotnet/maui/pull/16605
#16265
https://github.com/dotnet/maui/pull/16265
性能优化
已经进行了性能增强,以改善内存使用和资源生成。这些优化措施有助于提升应用程序的流畅性和响应性。显著的优化包括改善 CollectionView 的内存使用、资源生成控制以及 Android 计时器问题。
(#16990, #16838, #16941, #16762, #16963, #16845, #16741, #16644, #17062)。
#16990
https://github.com/dotnet/maui/pull/16990
#16838
https://github.com/dotnet/maui/pull/16838
#16941
https://github.com/dotnet/maui/pull/16941
#16762
https://github.com/dotnet/maui/pull/16762
#16963
https://github.com/dotnet/maui/pull/16963
#16845
https://github.com/dotnet/maui/pull/16845
#16741
https://github.com/dotnet/maui/pull/16741
#16644
https://github.com/dotnet/maui/pull/16644
#17062
https://github.com/dotnet/maui/pull/17062
修复特定平台的问题
解决了各种平台(包括 iOS、Android、Windows 和 macOS)上的特定平台的问题。这些修复确保了不同平台上一致的用户体验,解决了边框剪切、窗口故障和图像加载问题等问题。
(#14403, #15832, #14861, #16637, #16593, #16762, #16644, #16678, #16700, #16800, #16560, #16752, #16833, #16853, #16162, #16758, #16633, #16798, #16762, #16678)。
#14403
https://github.com/dotnet/maui/pull/14403
#15832
https://github.com/dotnet/maui/pull/15832
#14861
https://github.com/dotnet/maui/pull/14861
#16637
https://github.com/dotnet/maui/pull/16637
#16593
https://github.com/dotnet/maui/pull/16593
#16762
https://github.com/dotnet/maui/pull/16762
#16644
https://github.com/dotnet/maui/pull/16644
#16678
https://github.com/dotnet/maui/pull/16678
#16700
https://github.com/dotnet/maui/pull/16700
#16800
https://github.com/dotnet/maui/pull/16800
#16560
https://github.com/dotnet/maui/pull/16560
#16752
https://github.com/dotnet/maui/pull/16752
#16833
https://github.com/dotnet/maui/pull/16833
#16853
https://github.com/dotnet/maui/pull/16853
#16162
https://github.com/dotnet/maui/pull/16162
#16758
https://github.com/dotnet/maui/pull/16758
#16633
https://github.com/dotnet/maui/pull/16633
#16798
https://github.com/dotnet/maui/pull/16798
#16762
https://github.com/dotnet/maui/pull/16762
#16678
https://github.com/dotnet/maui/pull/16678
附加信息:
.NET MAUI 发行说明
https://github.com/dotnet/maui/releases/
适用于 Android 的 .NET
https://github.com/xamarin/xamarin-android/releases/
适用于 iOS 和 Mac 的 .NET
https://github.com/xamarin/xamarin-macios/releases/
Xcode 15 支持
现在,您可以使用 Xcode 15 beta 来进行应用程序构建和模拟器管理,并且这将在 Visual Studio 的下一版本中提供。在 .NET 8 的下一个版本中,我们将开始为 Apple SDK(例如 iOS 17)引入新的 API。我们已经使用 Xcode 15 Beta 6 验证了这一点,不过更高的版本应该也能正常工作。
如何更新
您可以在所有平台上通过 Visual Studio Code 使用 .NET MAUI 进行开发。安装 .NET MAUI 扩展并让我们知道将来如何为您改进预览体验。
请下载 .NET 8 RC1 安装程序,然后通过命令行安装 .NET MAUI:
dotnet workload install maui
在 Visual Studio for Mac 停用后,您可以在“Preferences”中启用 .NET 8 的预览功能后继续使用 Visual Studio for Mac 进行开发。
在 Windows 上,您可以更新或安装 Visual Studio 2022 17.8 预览版 2以获取带有 .NET MAUI 的 .NET 8 RC1。
.NET MAUI 扩展
https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-maui
让我们知道
https://www.surveymonkey.com/r/W789CW2
.NET 8 RC1
https://dotnet.microsoft.com/download/dotnet/8.0
Visual Studio for Mac 停用
https://devblogs.microsoft.com/visualstudio/visual-studio-for-mac-retirement-announcement/
Visual Studio 2022 17.8 预览版 2
https://devblogs.microsoft.com/visualstudio/visual-studio-2022-17-8-preview-2-has-arrived/
欢迎反馈
我们感谢您对 .NET MAUI 的反馈和贡献。您可以在 GitHub 存储库上报告问题、建议功能或提交请求。您还可以加入我们的 Discord 服务器。
感谢您的支持,祝您编码愉快!
报告问题
https://github.com/dotnet/maui/issues/new/choose
建议功能
https://github.com/dotnet/maui/issues/new?assignees=&labels=proposal%2Fopen%2Ct%2Fenhancement&projects=&template=feature-request.yml
提交请求
https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md
Discord 服务器
http://aka.ms/dotnet-discord