Xamarin.Forms to .NET MAUI
Moves your Xamarin.Forms app to .NET MAUI and keeps its store identity and user data, so nothing breaks quietly.
What we improved
Brought the essential tables into SKILL.md (namespaces, Xamarin.Essentials mapping, layout changes, obsolete APIs) so the skill works without opening the reference file, and kept the reference for templates and code. Added an inventory step
Improved by YourAISkill from the original by davidortinau, under its MIT licence. The download includes the author's licence and a CHANGES.md listing every change. Both Claude reviews read the improved version.
Claude's review
8/10 Practical Xamarin.Forms to MAUI migration with inventory greps, store identity, silent layout breaks, renderer to handler mappers, data migration and current obsoletions.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
**WORKFLOW SKILL** - Guide for migrating Xamarin.Forms apps to .NET MAUI. Covers project structure decisions, SDK-style project conversion, namespace renames, layout behavior changes, renderer-to-handler migration, effects-to-behaviors redesign, Xamarin.Essentials namespace mapping, NuGet dependency compatibility, data migration, and common troubleshooting. Incorporates field-tested advice from production migrations. USE FOR: "migrate Xamarin.Forms", "upgrade to MAUI", "Xamarin to MAUI", "convert Xamarin.Forms project", "Forms migration", "namespace changes Xamarin", "renderer to handler", "effects to behaviors", "AndExpand replacement", "layout changes MAUI", "Xamarin.Essentials to MAUI". DO NOT USE FOR: migrating Xamarin.Android native apps (use xamarin-android-migration), migrating Xamarin.iOS native apps (use xamarin-ios-migration), creating new MAUI handlers from scratch (use maui-custom-handlers), performance optimization (use maui-performance).
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: xamarin-forms-migration
description: "Migrate a Xamarin.Forms app to .NET MAUI (Xamarin.Forms support ended on 1 May 2024). Covers an inventory pass to size the job, a new single-project MAUI app that keeps the store identity (ApplicationId, version), XAML and C# namespace renames, Xamarin.Essentials namespace mapping, common compile-error fixes (Device, Color, MainPage, MessagingCenter), layout behaviour changes that break screens silently (zero default spacing, AndExpand, ScrollView inside StackLayout, undeclared Grid rows), renderers to handler mappers, effects, NuGet replacements, keeping user data (Properties, Preferences, SecureStorage, VersionTracking) across the upgrade, and APIs already obsolete in .NET 9 and 10. Use for: migrate Xamarin.Forms, upgrade to MAUI, convert a Forms project, renderer to handler, AndExpand replacement, layouts broken after migration, Xamarin.Essentials to MAUI. Not for native Xamarin.Android or Xamarin.iOS apps without Forms, or for building new MAUI handlers from scratch."
---
<!-- Modified by YourAISkill (youraiskill.com) on 2 December 2026 from the original by davidortinau. See CHANGES.md. -->
# Xamarin.Forms → .NET MAUI Migration
Target the newest .NET MAUI release that is in support. MAUI versions leave support sooner than the .NET runtime does, so check the MAUI support policy before choosing a TFM; the examples use `net10.0`, change it to the current one. Detailed tables for less common APIs are in `references/forms-migration-api.md`.
> **Do the conversion by hand, in batches.** Don't rely on the .NET Upgrade Assistant: its Xamarin.Forms output still needs every fix below, and doing them yourself keeps each change reviewable. Apply namespace renames, project changes and package swaps directly, build after each batch, and let compiler errors drive the next batch.
## 0. Inventory first (size the job)
Run from the solution root and keep the counts; they tell you where the work is.
```bash
grep -rnE "ExportRenderer|: *[A-Za-z]*Renderer\b" --include=*.cs . # custom renderers
grep -rnE "ExportEffect|RoutingEffect|PlatformEffect" --include=*.cs . # effects
grep -rnE "DependencyService|MessagingCenter|Device\.[A-Z]" --include=*.cs . # APIs to replace
grep -rnE "AndExpand|RelativeLayout|<Frame|<ListView|<TableView" --include=*.xaml .
grep -rnE "Application\.Current\.Properties|\.Properties\[" --include=*.cs . # data that must be migrated
grep -rn "PackageReference" --include=*.csproj . # every package to re-check
```
## 1. Migration workflow
1. **Create a new MAUI project** with `dotnet new maui -n MyApp` (single project: one project, platform code under `Platforms/<platform>/`). Multi-project layouts are supported (`dotnet new maui-multiproject`) if you need them, but single project is simpler to migrate into. Create a new project and copy code in; don't convert the old project file in place.
2. **Keep the store identity** in the new `.csproj` (below). Get this wrong and the stores treat the build as a different app, or refuse it as a downgrade.
3. **Copy shared code** into the new project, and platform code into `Platforms/Android`, `Platforms/iOS`, and so on. Images go to `Resources/Images`, fonts to `Resources/Fonts`, raw files to `Resources/Raw`.
4. **Update namespaces** (XAML, C#, Essentials: section 3) and fix the common compile errors (section 4).
5. **Fix layout behaviour changes** (section 5). These do not cause build errors.
6. **Migrate renderers to handlers** and port effects (section 6).
7. **Remove** `Microsoft.Maui.Controls.Compatibility` if anything pulled it in, and rebuild those layouts natively.
8. **Replace NuGet dependencies** (section 7).
9. **Migrate stored data** so users keep settings and logins (section 8).
10. Delete `bin/` and `obj/` (and any leftover `Resource.designer.cs`), build, test on devices, iterate.
11. **Check for APIs already obsolete** in your target version (section 9).
### Project identity
...From davidortinau's repository, MIT licence.
Related skills
-
Checked
.NET trimming and Native AOT
Fixes trimming and Native AOT warnings in your .NET code step by step, so your app publishes small and fast.
9/101 credit -
Checked
MAUI safe area layout
Handles safe areas and edge to edge layouts in .NET MAUI, so content clears notches and the keyboard.
7/101 credit -
Checked
Godot C# scripting
Writes, ports and debugs C# scripts for Godot 4, so your game builds and runs without the common C# traps.
8/101 credit -
Checked
.NET Native Interop Helper
Writes correct P/Invoke calls from .NET to C and C++ libraries, avoiding crashes, leaks and garbled text.
8/101 credit -
Checked
Dotnet Performance Tracing
Picks the right tool and commands to capture .NET performance data for a production slowdown.
7/101 credit -
Checked
Godot C# Scripting
Writes C# game code for Godot 4 that builds and runs, including signals, exports and calling GDScript.
8/101 credit