.NET MAUI.NET 跨平台 UI 框架
.NET MAUI 是 .NET 的多平台 App UI,用于构建支持移动设备、平板和桌面的原生应用程序的框架。
- 提供支持多平台的原生 UI
- 可部署到跨移动和桌面的多设备上
- 使用单一项目、单一代码库
- Xamarin.Forms 的进化版
- 作为 .NET 6 的组件提供
Xamarin.Forms vs .NET MAUI
Xamarin.Forms | .NET MAUI | |
---|---|---|
Platforms | ||
Android | API 19+ | API 21+ |
iOS | 9-14 | 10+ |
Linux | Community | Community |
macOS | Community | Microsoft |
Tizen | Samsung | Samsung |
Windows | UWP Microsoft WPF Community |
Microsoft |
Features | ||
Renderers | Tightly coupled to BindableObject | Loosely coupled, no Core dependencies |
App Models | MVVM, RxUI | MVVM, RxUI, MVU, Blazor |
Single Project | No | Yes |
Multi-targeting | No | Yes |
Multi-window | No | Yes |
Misc | ||
.NET | Xamarin.iOS, Xamarin.Android, Mono, .NET Framework, ... | .NET 6+ |
Acquisition | NuGet & Visual Studio Installer | dotnet |
Project System | Franken-proj | SDK Style |
dotnet CLI | No | Yes |
Tools | ||
Visual Studio 2019 | Yes | Yes |
Visual Studio 2019 for Mac | Yes | Yes |
Visual Studio Code | No | Yes |
评论