A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Microsoft.Maui.Controls.Compatibility 11.0.0 stable will not be released because the optional package stopped being built and shipped starting with .NET 11 Preview 6; remove the package reference and migrate any compatibility-only usages before targeting .NET 11. ^1^
Required migration
- Remove the explicit reference from the project file:
<ItemGroup>
<!-- Remove this reference -->
<!--
<PackageReference
Include="Microsoft.Maui.Controls.Compatibility"
Version="11.0.0-preview.5.26304.4" />
-->
</ItemGroup>
- Keep the normal .NET MAUI project configuration and rebuild against the .NET 11 workload.
- Identify what required the package:
- Search for
Microsoft.Maui.Controls.Compatibility. - Search for custom classes ending in
Renderer. - Search for
ExportRenderer,VisualElementRenderer,ShellRenderer,NavigationRenderer,TabbedRenderer, andPhoneFlyoutPageRenderer. - Check transitive dependencies with:
- Search for
dotnet list package --include-transitive
dotnet clean
dotnet restore
dotnet build
- Migrate APIs or Xamarin.Forms renderers that existed only in the optional package to .NET MAUI handlers. A handler migration consists of creating the cross-platform control and platform handler implementations, defining a property mapper, and registering the handler through
ConfigureMauiHandlersandAddHandler. ^2^
A typical registration is:
builder.ConfigureMauiHandlers(handlers =>
{
#if ANDROID
handlers.AddHandler(typeof(CustomView),
typeof(CustomViewHandler));
#elif IOS || MACCATALYST
handlers.AddHandler(typeof(CustomView),
typeof(CustomViewHandler));
#endif
});
Existing shimmed renderers
Removing the package does not necessarily mean every renderer must be replaced immediately. Some shimmed renderer base classes remain included in Microsoft.Maui.Controls. The .NET 11 guidance says to remove the optional package and migrate only usages that depend on APIs or compatibility renderers formerly supplied exclusively by that package. ^3^
The remaining supported shimmed renderers have restrictions. The documented set includes renderer types such as FrameRenderer, ListViewRenderer, VisualElementRenderer, and specific Shell, navigation, flyout, table, and tabbed renderers. Register applicable renderer types explicitly in MauiProgram.cs, for example:
builder.ConfigureMauiHandlers(handlers =>
{
#if IOS || MACCATALYST
handlers.AddHandler<NavigationPage,
Microsoft.Maui.Controls.Handlers.Compatibility.NavigationRenderer>();
#endif
});
.NET MAUI 11 also changes several defaults:
- Android Shell uses handlers by default.
- iOS and Mac Catalyst
NavigationPageandTabbedPageuse handlers instead of compatibility renderers. - Compatibility renderers that remain in
Microsoft.Maui.Controlscan be registered manually as a temporary migration fallback where documented. ^3^
Using Preview 5 temporarily
Do not treat 11.0.0-preview.5.26304.4 as the supported counterpart of stable .NET MAUI 11. It predates the Preview 6 package removal and remains a prerelease package. Prerelease NuGet packages require explicit opt-in, may change, and are generally unsupported by their publisher. ^4^
It may be useful only in an isolated migration branch to unblock compilation while dependencies are being inventoried. It should not be the long-term migration strategy or a production dependency. Mixing that Preview 5 package with the stable .NET MAUI 11 package/workload set can also leave the project with components from different release trains.
There is therefore no expected stable-package timeline to wait for: package removal is the documented .NET 11 product behavior. If removing it reveals missing types, those compiler errors identify the specific compatibility dependencies that must either use one of the remaining shimmed renderers from Microsoft.Maui.Controls or be converted to handlers.
References