.NET MAUI 即将登陆 Linux 和浏览器,由 Avalonia 提供支持。
.NET MAUI is coming to Linux and the browser, powered by Avalonia

原始链接: https://avaloniaui.net/blog/net-maui-is-coming-to-linux-and-the-browser-powered-by-avalonia

## .NET MAUI 通过 Avalonia 后端获得新生 由 Avalonia 驱动的新后端将 .NET MAUI 带到 Linux 和浏览器,扩展了其平台覆盖范围并提高了桌面性能。该项目源于实验,现在已成为一项承诺,允许开发者无需重写即可为新平台利用现有的 MAUI 代码库。 主要优势包括对 Linux(Ubuntu、Debian、Fedora)和嵌入式 Linux 设备的本机桌面支持,以及在浏览器中直接运行 MAUI 应用程序的功能性 WebAssembly 演示。在测试中,macOS 上的性能提升已经显现,超过 Mac Catalyst 超过 2 倍。 Avalonia 后端采用绘制 UI 模型,确保在所有平台(Windows、macOS、Linux、移动设备和 Web)上保持一致的外观和感觉。这简化了开发,因为它专注于单个目标并减少了平台特定问题。Avalonia 团队旨在通过这种统一的方法来加速开发并提高可靠性。 最终,这项合作旨在解决长期以来对 Linux 支持和跨平台一致 UI 的要求,同时通过洞察力和潜在的新用户使 Avalonia 受益。未来的开发包括与 Google 的 Impeller GPU 渲染器的集成,以实现更大的性能改进。现在开放早期访问注册。

## .NET MAUI 扩展与 Web 开发反思 .NET MAUI 正在扩展到 Linux 和浏览器,通过 Avalonia 实现,引发了 Hacker News 的讨论。 一些人认为这是微软对谷歌 Flutter 的竞争做出回应,也是该公司转向更开放平台的积极转变——这部分归功于像 Miguel de Icaza 这样的人。 评论员还反思了 Web 开发的演变,指出现代 Web 应用越来越像桌面应用程序。 然而,人们对 MAUI 的 Web 实现与标准 Web 功能(如文本选择和复制链接)脱节表示担忧,这与过去的技术(如 Java applet 和 Flash)存在的问题相呼应。 进一步的讨论涉及对能够处理复杂应用程序(而不仅仅是简单 webview)的强大 UI 工具包的渴望,以及对桌面应用程序开发寿命的怀疑。 该项目还在探索集成 Flutter 的 GPU 渲染器 Impeller,以提高性能。
相关文章

原文

We are bringing .NET MAUI to Linux and to the browser, powered by Avalonia.

For the past few months, we have been working on an Avalonia powered backend for .NET MAUI, with guidance and feedback from engineers in the MAUI ecosystem. What started as an experiment has grown into a project we are committing to, with apps already running on new platforms. It is time to show you what we have been building.

Try It Right Now

Before we dive into the details, you can experience it yourself:

Launch MAUI in your browser →

This is a real MAUI application running on WebAssembly, rendered through Avalonia, with no plugins or hidden tricks. It is an early build with rough edges, but it proves the point: MAUI can now run on every major desktop OS and in the browser.

What is the Avalonia MAUI Backend?

At its core, the Avalonia MAUI Backend enables you to keep your MAUI codebase while replacing the rendering layer with Avalonia. The goal is straightforward: take your existing MAUI applications and extend them to additional platforms, while enhancing desktop performance along the way.

In practical terms, that means several big wins.

Desktop Linux support

.NET MAUI apps running as first class desktop apps on distributions such as Ubuntu, Debian and Fedora, sharing the same Avalonia renderer that already powers demanding desktop apps in production today.

联系我们 contact @ memedata.com