
If your product still ships a Xamarin.Forms app, the question is no longer whether to move it to .NET MAUI but how to do it without breaking what users rely on. This post is for product owners and engineering leads who have to plan that work. It covers why the deadline has effectively passed, what changes in the code, a sequence that keeps risk contained, and the problems that tend to surface late.
Why this can no longer wait
Microsoft ended support for all Xamarin SDKs, Xamarin.Forms included, on 1 May 2024. Since then there have been no fixes and no security updates. The final Xamarin releases were built against Android API level 34 and the Xcode 15 SDKs, and nothing newer will follow.
The app stores have since raised their bars past that point:
- Apple has required uploads to App Store Connect to be built with Xcode 26 and the matching platform SDKs since 28 April 2026.
- Google Play has required new apps and updates for phones and tablets to target API level 36 since 31 August 2026. Existing apps targeting below API level 35 are no longer offered to new users on devices running newer Android versions.
Taken together, a supported Xamarin toolchain cannot produce an update that either store will accept. A security fix, a changed API endpoint or a policy change can now leave you unable to ship at all.
One more planning fact: .NET MAUI itself moves quickly. Each major version is supported for a minimum of six months after its successor ships, so the migration is the start of a roughly yearly upgrade rhythm, not a one-off.
What actually changes
Project structure
Xamarin.Forms solutions usually have a shared library plus one project per platform. .NET
MAUI can collapse these into a single multi-targeted project, with shared fonts, images,
app icon and splash screen generated for each platform at build time. Platform code
lives in a Platforms folder.
<PropertyGroup>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
</PropertyGroup>
<ItemGroup>
<MauiIcon Include="Resources\AppIcon\appicon.svg" />
<MauiImage Include="Resources\Images\*" />
<MauiFont Include="Resources\Fonts\*" />
</ItemGroup>
The single project is optional. Microsoft’s guidance is that every project must become SDK-style, but a multi-project solution can stay multi-project. That gives you a choice about how much to restructure in one go.
Namespaces and XAML
Most of the mechanical change is renaming. Xamarin.Forms becomes Microsoft.Maui and
Microsoft.Maui.Controls, and the default XAML namespace changes:
<!-- Xamarin.Forms -->
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" ...>
<!-- .NET MAUI -->
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" ...>
Xamarin.Essentials is now part of .NET MAUI, and several APIs moved. The Device helper
is replaced by types such as MainThread and DeviceInfo. Colours use float rather
than double components, and Color.Default no longer exists.
Custom renderers become handlers
This is usually the largest single piece of work. A renderer subclassed a platform-specific class and reacted to element and property changes. A handler maps each cross-platform property to a small platform action, and you can extend an existing handler’s mapper instead of subclassing it.
// Xamarin.Forms (Android project): remove the underline from every Entry
[assembly: ExportRenderer(typeof(Entry), typeof(PlainEntryRenderer))]
public class PlainEntryRenderer : EntryRenderer
{
public PlainEntryRenderer(Context context) : base(context) { }
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
{
base.OnElementChanged(e);
if (Control != null)
Control.Background = null;
}
}
// .NET MAUI (MauiProgram.cs): the same change as a mapper extension
Microsoft.Maui.Handlers.EntryHandler.Mapper.AppendToMapping("PlainEntry", (handler, view) =>
{
#if ANDROID
handler.PlatformView.Background = null;
#endif
});
Mapper customisations are global: they apply to every control of that type in the app. If only some entries should change, subclass the control and check the type inside the mapping.
Earlier .NET MAUI releases offered an optional compatibility package that kept some Xamarin.Forms renderers and APIs working. Microsoft stopped shipping it from .NET 11, so it is no longer a way to postpone this work.
Platform services and DependencyService
DependencyService still exists in .NET MAUI, so existing calls will compile. But MAUI
has dependency injection built in through MauiProgram, and moving platform services
there makes them visible and testable:
public interface IFileExporter
{
Task ExportAsync(string fileName, Stream content);
}
// MauiProgram.cs: one registration per platform you target
#if ANDROID
builder.Services.AddSingleton<IFileExporter, AndroidFileExporter>();
#elif IOS
builder.Services.AddSingleton<IFileExporter, IosFileExporter>();
#endif
builder.Services.AddTransient<ReportsViewModel>();
ReportsViewModel then takes IFileExporter as a constructor parameter instead of
calling DependencyService.Get.
Third-party libraries
Most Xamarin.Forms packages will not work unless their authors recompiled them for
modern .NET. Check each package’s supported frameworks on NuGet. Packages that only list
Xamarin-specific targets such as xamarinios or monotouch will not work. Some have
direct successors (the .NET MAUI Community Toolkit replaces the Xamarin one). For the
rest, the choices are to recompile the code if you own it, find a replacement, or
remove the feature.
A sensible migration sequence
- Take an inventory. List every custom renderer, effect,
DependencyServiceregistration, NuGet package and its supported frameworks, and every place the app stores data on the device. This list is the real estimate. - Get current on Xamarin first. Microsoft recommends moving to Xamarin.Forms 5 and the latest dependency versions, and confirming the app still works, before you migrate. This narrows the gap you then have to cross.
- Pin down current behaviour. Before changing anything, write characterisation tests for the flows that matter: sign-in, sync, payments, anything regulated. UI-heavy apps also benefit from a recorded walkthrough of key screens on real devices.
- Use tooling for the mechanical part only. The .NET Upgrade Assistant is now officially deprecated. Microsoft points instead to its GitHub Copilot upgrade agent, which lists .NET MAUI and Xamarin among supported project types, works on a branch and commits each step. Treat its output as a first draft of the project files and namespaces, then review it like any other change.
- Restructure, then rewrite, not both at once. Get the app building and running on SDK-style projects before you consolidate into a single project or rework renderers. When something breaks, you want to know which change caused it.
- Port renderers, effects and platform services, then run the tests from step 3.
- Test release builds on real devices. A clean debug build on a simulator says little about how the store build behaves on a mid-range phone.
Risks, and how to reduce them
- Users losing local data. Data saved through
Application.Properties, Xamarin.Essentials secure storage or version tracking needs explicit migration, and Microsoft documents a procedure for each. Test by installing the new build over the old one, not on a clean device. - Layout drift. Default spacing and sizes differ (a
BoxViewwith no size set is now invisible, for example), andOnAppearingno longer fires when the app returns from the background. Budget time for visual review of every screen. - Abandoned dependencies. An unmaintained package with no successor drives the schedule more than anything else. Spike replacements early, before committing to dates.
- Leaking customisations. Because handler mappings are global, a fix for one screen can quietly change another. Keep mapper extensions in one place and review them together.
What this doesn’t solve
Migration moves your app onto a supported platform; it does not fix its architecture. If the codebase was hard to change on Xamarin, it will be hard to change on .NET MAUI. And .NET MAUI suits business apps that share logic with a .NET backend. For a graphics-heavy consumer app that needs to feel fully native on each platform, separate native apps may be the better long-term answer. That is worth deciding before the migration starts, not after.
Where to start
Start with the inventory in step 1. It takes days, not weeks, and it turns “we need to migrate” into a list you can estimate and prioritise. If you want a second pair of eyes on that list or help with the work itself, our mobile app development page explains how we approach .NET MAUI projects.
Further reading
- Xamarin support policy — Microsoft
- .NET MAUI support policy — Microsoft
- Upgrade from Xamarin to .NET — Microsoft Learn
- Manually upgrade a Xamarin.Forms app to a multi-project .NET MAUI app — Microsoft Learn
- Migrate a custom renderer to a .NET MAUI handler — Microsoft Learn
- Control customisation with handlers — Microsoft Learn
- Dependency injection in .NET MAUI — Microsoft Learn
- .NET Upgrade Assistant overview (deprecation notice) — Microsoft Learn
- GitHub Copilot upgrade overview — Microsoft Learn
- What’s new in .NET MAUI for .NET 11 — Microsoft Learn
- .NET MAUI 11 Preview 6 coverage — InfoQ
- Upcoming requirements — Apple Developer
- Target API level requirements for Google Play apps — Google Play Console Help