认识.Net MAUI跨平台框架
精选
原创
©著作权归作者所有:来自51CTO博客作者江鸟木又的原创作品,请联系作者获取转载授权,否则将追究法律责任
.NET MAUI概念:
全称:

.NET 多平台应用 UI (.NET MAUI) 是一个开源的跨平台框架,前身是Xamarin.Forms ! 用于使用 C# 和 XAML 创建本机移动和桌面应用。
NET MAUI,共享代码库,可在 Android、iOS、macOS 和 Windows 上运行的应用
应用架构:

github 地址 : GitHub - dotnet/maui: .NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop..NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop. - GitHub - dotnet/maui: .NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://github.com/dotnet/maui.git
maui 示例 github 地址: GitHub - dotnet/maui-samples: Samples for .NET Multi-Platform App UI (.NET MAUI)Samples for .NET Multi-Platform App UI (.NET MAUI) - GitHub - dotnet/maui-samples: Samples for .NET Multi-Platform App UI (.NET MAUI)
https://github.com/dotnet/maui-samples.git
使用MAUI好处:
- 从 Visual Studio 中的单个共享代码库使用 XAML 和 C# 编写跨平台应用。
- 跨平台共享 UI 布局和设计。
- 跨平台共享代码、测试和业务逻辑。
MAUI应用体系结构如下:

控件接口架构

平台支持要求:

浏览器支持:

开发工具版本要求:

windows : Visual Studio 2022 17.3 或更高
macos: Visual Studio 2022 for Mac 17.4 或更高
若要生成、签名和部署适用于 iOS 或 macOS 的 .NET MAUI 应用,还需要:

安装好XCode

注册好开发者账户

安装MAUI
WINDOWS:

MACOS:

MAUI应用启动流程

MAUI常见布局:
