Skip to main content
net11.0

.NET MAUI Desktop platform support for Avalonia.Controls.Maui.

Published
Jun 16, 2026
4mo ago
Total Downloads
6.8K
6,850

Install

dotnet add package Avalonia.Controls.Maui.Desktop --version 11.0.0-preview.5.26167.1758
ProductVersions
.NET
net11.0

README

Avalonia.Controls.Maui.Desktop

This package provides Avalonia.Controls.Maui support for .NET MAUI Single Project apps, adding Avalonia.Desktop support to apps that implement the single project build system.

If you wish to build for Avalonia.Browser (WASM), or the other Avalonia target types, refer to the Avalonia.Controls.Maui documentation.

Usage

Reference this package in your .NET MAUI project:

<PackageReference Include="Avalonia.Controls.Maui.Desktop" Version="..." />

And update the target frameworks to include the standard .NET version.

<PropertyGroup>
		<!-- Add net11.0... -->
		<TargetFrameworks>net11.0;net11.0-android</TargetFrameworks>
		<TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('linux'))">
...

The source generator will automatically create a Program.Main entry point for your desktop app. You can control its behavior with MSBuild properties:

Property Default Description
AvaloniaControlsMauiGenerateBootstrap true Generate the desktop bootstrap entry point
AvaloniaControlsMauiTheme Fluent Theme to use
AvaloniaControlsMauiThemeVariant Default Theme variant (Default, Light, Dark)
AvaloniaControlsMauiIncludeInterFont true Include Inter font family

License

This project is licensed under the MIT License.

Changes from Previous Version

No structural changes between v11.0.0-preview.5.26161.128 and v11.0.0-preview.5.26167.1758.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.