Experimental and pre-release tools for .NET MAUI
翻譯準備中
開發工具C# · JavaScriptGitHub @dotnet自行安裝營運者未確認
試用過了嗎? 點一下就好,不需要登入。
正在載入完整 README。 以下為已儲存的摘錄。
Experimental packages and tooling for .NET MAUI. This repository hosts pre-release projects that are in active development and may ship independently. ⚠️ These packages are experimental. APIs may change between releases. These packages are not covered by the .NET MAUI Support Policy and are provided as-is. A command-line tool for .NET MAUI development environment setup, device management, and app automation.檢視完整 README ↗
Experimental packages and tooling for .NET MAUI. This repository hosts pre-release projects that are in active development and may ship independently.
⚠️ These packages are experimental. APIs may change between releases. These packages are not covered by the .NET MAUI Support Policy and are provided as-is.
At a glance:
| Product | What it is |
|---|---|
| Cli | maui global tool for environment diagnostics, device management, Apple/Android setup, app automation, and rapid prototyping. |
| Comet | Experimental MVU UI framework for .NET MAUI with C# fluent UI, signals, and reactive state. |
| Go | Single-file Comet app server and companion app for rapid prototyping. |
| DevFlow | Runtime app automation, inspection, debugging, and MCP tooling for .NET MAUI apps — and for plain .NET Android, iOS, Mac Catalyst and macOS apps. |
| AI Extensions | Source-generated Microsoft.Extensions.AI tool bindings for MAUI and .NET apps. |
| macOS AppKit Backend | Native AppKit backend for running MAUI apps as macOS apps without Mac Catalyst. |
| WPF Backend | WPF-based Windows desktop backend for .NET MAUI apps. |
| Essentials.AI | On-device AI APIs for chat completion, embeddings, and tool calling in MAUI apps. |
| AppProjectReference | MSBuild package for referencing MAUI app projects and consuming their platform artifacts. |
| MAUI Testing | MTP-based Android, iOS, and Mac Catalyst test lifecycle and single-project template. |
A command-line tool for .NET MAUI development environment setup, device management, and app automation.
maui doctor) with auto-fix capabilitiesmaui android) — install, update, and configuremaui android emulator) — create, start, stop, and delete Android emulatorsmaui apple) — Xcode, simulator, and runtime management (macOS)maui device list) across all connected platformsmaui devflow) — visual tree inspection, element interaction, screenshots, WebView/CDP automation, network monitoring, profiling, storage access, real-time log/sensor streaming, and MCP server for AI agentsmaui ai init) — install MAUI Copilot skills, DevFlow skills, Copilot agents, and MCP configuration for the current projectmaui go) — create, serve, and upgrade single-file Comet Go projects for rapid prototypingmaui version)maui update --self) with daily interactive update notices--json for CI pipelines, --verbose, --dry-run, --ci| Package | Description |
|---|---|
CLI global tool (maui) |
# Microsoft.Maui.Cli is currently released as a pre-release, so make sure to use the --prerelease flag
dotnet tool install -g Microsoft.Maui.Cli --prerelease
maui doctor
Experimental MVU UI framework for .NET MAUI — C# fluent UI, signals/reactive state, single-file apps via Comet Go.
| Package | Description |
|---|---|
Comet | Core MVU framework |
Comet.SourceGenerator | Roslyn source generators for Comet |
Comet.Layout.Yoga | Yoga layout integration |
Single-file Comet apps server + companion app for rapid prototyping (alpha; sister to Comet).
| Package | Description |
|---|---|
Microsoft.Maui.Go.Server | Comet Go server for hosting single-file apps |
A comprehensive testing, automation, and debugging toolkit for .NET MAUI apps — and for plain .NET Android, iOS, Mac Catalyst and macOS apps with no MAUI reference at all. The DevFlow CLI is integrated into the maui CLI as maui devflow — see Cli above.
maui devflow mcp)AI integration packages for Microsoft.Extensions.AI and .NET MAUI apps.
Source-generated AI tool discovery — annotate methods or property accessors with [ExportAIFunction] to create AI-callable tools. Composed or auto-generated tool contexts, DI-aware parameter binding, approval gates, AOT-friendly.
| Package | Description |
|---|---|
Source-generated AI tool contexts for Microsoft.Extensions.AI |
A native macOS AppKit backend for .NET MAUI — run MAUI apps as true AppKit apps with NSWindow, NSButton, NSScrollView, native menu bar, sidebar flyout, and more. An alternative to Mac Catalyst.
| Package | Description |
|---|---|
| Core AppKit backend — handlers, hosting, MapKit | |
| Essentials APIs for macOS | |
| Blazor Hybrid via WKWebView |
A WPF-based alternative to the official WinUI backend for .NET MAUI. Run MAUI apps on Windows desktops using native WPF controls with 22+ fully implemented controls, Shell navigation, Blazor WebView, and 14 Essentials APIs.
| Package | Description |
|---|---|
| Core WPF backend — handlers, hosting, Blazor WebView | |
| Essentials APIs for WPF |
On-device chat and embeddings through Microsoft.Extensions.AI, backed by Apple
Intelligence, Apple NaturalLanguage, and Windows AI on supported systems.
See Essentials.AI for documentation and samples.
| Package | Description |
|---|---|
| On-device AI APIs for MAUI |
An MSBuild package that lets test projects, packaging projects, or CI tools declare a MAUI app as a build-time dependency and consume its platform artifacts (.apk, .ipa, .app, .msix) as MSBuild items with rich metadata.
<MauiAppProjectReference Include="..\MyApp\MyApp.csproj" />
Built artifacts are exposed as @(MauiAppArtifact) items with ArtifactType, ApplicationId, Installable, Launchable, and other metadata — no manual path hunting required.
| Package | Description |
|---|---|
| Build-time app project reference with artifact discovery |
Framework-neutral Microsoft.Testing.Platform lifecycle support for device tests, with a mauitest single-project template modeled after dotnet new maui.
MauiProgram.CreateMauiTestApp() and dependency-injection builder| Package | Description |
|---|---|
| Runtime builder and platform lifecycle | |
dotnet new mauitest template pack |
See src/Testing/README.md for installation, execution, and framework conversion instructions.
This repository is also a marketplace for distributable agent skills for .NET MAUI development. The recommended one-stop setup is maui ai init, which installs the relevant MAUI skills, bundled DevFlow skills, Copilot agent definitions, and MCP configuration for detected agent environments.
| Plugin | Description |
|---|---|
dotnet-maui | MAUI development: DevFlow automation, profiling, accessibility, platform bindings, diagnostics, session review |
# Preview recommended setup and exact scopes for VS Code
maui ai init --env VsCode --dry-run
# Bootstrap this project for AI-powered MAUI development
maui ai init --env VsCode --yes
# Discover skills, agents, and MCP registrations, then inspect local inventory
maui ai list
maui ai status
# Refresh existing managed assets only; never add missing recommendations
maui ai update
# Or add exactly one typed asset, without implicit companion installations
maui ai add skill maui-devflow-debug --env Claude --yes
maui ai add mcp maui-devflow --env Claude --yes
--yes/-y accepts prompts; --force separately authorizes replacement. Copilot CLI MCP registration is user-wide; other supported MCP destinations are project-scoped. See the CLI guide for targeting, provenance, and safety semantics.
Direct plugin installation remains available for agent runtimes that support plugin marketplaces:
/plugin marketplace add dotnet/maui-labs
/plugin install dotnet-maui@dotnet-maui-labs
See plugins/ for the full catalog and plugins/CONTRIBUTING.md for how to add skills.
Preview packages from main are published automatically to the dotnet10 feed:
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json
Add this feed to your NuGet.config:
<packageSources>
<add key="dotnet10" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json" />
</packageSources>
These are CI builds from main only — PR builds are not published. Use wildcard versions (e.g., 0.1.0-preview.*) to get the latest.
See CONTRIBUTING.md for build instructions and development setup.
For the formal DevFlow HTTP and WebSocket contract, see docs/DevFlow/spec.
For live app inspection and host setup, see the MAUI DevFlow Inspector guide.
For AI Extensions usage and samples, see src/AIExtensions/README.md,
the IChatClient playground for live
requests, portable recording/replay, and archived-chat search, and the
Garden sample.
See SUPPORT.md for how to file issues, get help, and the support policy for this repository.