Use this skill to migrate Xamarin.Forms code into .NET MAUI projects with a repeatable, auditable workflow.
This skill is reusable across repositories and teams. It supports full-solution migration and incremental copy-paste migration where code is moved module-by-module into an existing or new MAUI app.
Use this skill as the baseline migration pass, then run platform and renderer-focused companion skills for deep parity validation.
-
Preflight analysis
-
Detect projects, source files, XAML, resources, and packages.
-
Identify deprecated APIs, DependencyService usage, MessagingCenter usage, and custom renderers.
-
Identify platform-specific files and settings (Android manifest and permissions, iOS plist and entitlements, Windows/UWP declarations).
-
Compute migration readiness and complexity indicators.
-
Generate MAUI target skeleton
-
Create new MAUI single-project structure.
-
Create Platforms folders for Android, iOS, and Windows.
-
Create Resources folders for Images, Fonts, Styles, and Raw.
-
Generate SDK-style project file with UseMaui enabled.
-
Code and XAML transformation
-
Replace namespaces from Xamarin.Forms to Microsoft.Maui.Controls.
-
Replace Xamarin.Essentials usage with Microsoft.Maui APIs.
-
Replace Xamarin XAML schema with MAUI XAML schema.
-
Preserve business logic, view models, and services.
-
Apply safe copy-paste transforms for partial migrations without changing unaffected MAUI modules.
-
Resource and platform migration
-
Move images, fonts, and raw assets into MAUI Resources folders.
-
Move platform-specific startup and integration code into Platforms folders.
-
Preserve platform overrides and conditional behavior.
-
Re-map platform metadata and capabilities (manifest entries, plist keys, entitlements, URL schemes, background modes).
-
Dependency and API modernization
-
Classify dependencies as compatible, needs upgrade, or unsupported.
-
Provide replacement suggestions for unsupported packages.
-
Convert DependencyService patterns to DI registration in MauiProgram.
-
Flag MessagingCenter modernization paths.
-
Flag APIs requiring permission-flow or lifecycle updates on Android and iOS.
-
Renderer to handler transition
-
Detect renderer implementations.
-
Generate handler templates.
-
Mark manual native mapping steps as required follow-up tasks.
-
This repository currently provides the skill definition and reference guidance. If automation scripts are added later, keep this section updated with the real file paths.