Agent skill

Xamarin Android Migration

by davidortinau in davidortinau/maui-skills

WORKFLOW SKILL - Guide for migrating Xamarin.Android native apps to .NET for Android.

MITAuto-check passedMobile

Install Xamarin Android Migration

skills CLI
$ npx skills add davidortinau/maui-skills --skill xamarin-android-migration -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install davidortinau/maui-skills xamarin-android-migration --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/davidortinau/maui-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/maui-skills/skills/xamarin-android-migration .claude/skills/xamarin-android-migration && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
xamarin-android-migration
GitHub stars
174
Token cost
~1.4k tokens
SKILL.md length
463 words
Files
2 (incl. references)
Skills in repo
41
Repo updated
First seen
Licence
MIT

At a glance

WORKFLOW SKILL - Guide for migrating Xamarin.Android native apps to .NET for Android.

  • Works in 10 steps: Create new .NET for Android project… → Copy code and resources into the new… → Update MSBuild properties (see… → …
  • : migrate Xamarin.Android
  • SKILL.md covers Migration Workflow, Critical Gotchas, Platform-Specific Pitfalls and NuGet Compatibility Note, plus 2 more sections
  • Calls dotnet

What it does

Xamarin Android Migration is an agent skill from davidortinau/maui-skills. WORKFLOW SKILL - Guide for migrating Xamarin.Android native apps to .NET for Android. Covers SDK-style project conversion, target framework monikers, MSBuild property changes, AndroidManifest.xml updates, NuGet dependency compatibility, Android binding library migration, Xamarin.Essentials in native apps, .NET CLI support, and platform-specific gotchas. USE FOR: "migrate Xamarin.Android", "upgrade Xamarin.Android to .NET", "Xamarin.Android to .NET for Android", "Android project migration", "Android binding…

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/android-migration-api.md`).

It sits in Mobile, covering Cross-platform mobile apps and iOS development. It works with Android, .NET and iOS. The repository describes itself as: .NET MAUI skills for GitHub Copilot and Claude Code. The licence is MIT.

When your agent uses it

  • : migrate Xamarin.Android
  • Upgrade Xamarin.Android to .NET
  • Xamarin.Android to .NET for Android
  • Android project migration

Example prompts

  • “migrate Xamarin.Android”
  • “upgrade Xamarin.Android to .NET”
  • “Xamarin.Android to .NET for Android”
  • “/xamarin-android-migration”

Workflow steps

10 steps, taken from the first numbered list in SKILL.md.

  1. Create new .NET for Android project (dotnet new android)
  2. Copy code and resources into the new project
  3. Update MSBuild properties (see references/android-migration-api.md)
  4. Update AndroidManifest.xml — remove , use csproj properties
  5. Delete Resource.designer.cs (regenerated automatically)
  6. Update NuGet dependencies
  7. Migrate binding libraries (if applicable)
  8. Replace Xamarin.Essentials with true
  9. Handle encoding changes
  10. Delete bin//obj/, build, test on physical devices

What it can do on your machine

Read from SKILL.md and the folder at commit 79bb4bf. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • dotnet

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Xamarin Android Migration loads about 1.4k tokens when it runs, and up to ~2.9k if it reads all its reference files. Until then it costs about 213 tokens; SKILL.md has 463 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~213
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from davidortinau/maui-skills at commit 79bb4bf, republished under its MIT licence (© davidortinau). 463 words, ~1,395 tokens.

Download SKILL.mdSave it as .claude/skills/xamarin-android-migration/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
xamarin-android-migration
description
**WORKFLOW SKILL** - Guide for migrating Xamarin.Android native apps to .NET for Android. Covers SDK-style project conversion, target framework monikers, MSBuild property changes, AndroidManifest.xml updates, NuGet dependency compatibility, Android binding library migration, Xamarin.Essentials in native apps, .NET CLI support, and platform-specific gotchas. USE FOR: "migrate Xamarin.Android", "upgrade Xamarin.Android to .NET", "Xamarin.Android to .NET for Android", "Android project migration", "Android binding library migration", "convert Android project to SDK-style", "AndroidSupportedAbis to RuntimeIdentifiers". DO NOT USE FOR: migrating Xamarin.Forms apps (use xamarin-forms-migration), migrating Xamarin.iOS apps (use xamarin-ios-migration), creating new MAUI apps from scratch (use feature-specific MAUI skills).

Xamarin.Android → .NET for Android Migration

For SDK-style project templates, MSBuild property tables, ABI conversion, namespace mappings, and CLI commands, see references/android-migration-api.md.

⚠️ Field-tested advice: Android migration is significantly harder than iOS. Expect more UI bugs, OEM-specific rendering differences, and issues not reproducible on emulators. Test on physical devices.

Migration Workflow

  1. Create new .NET for Android project (dotnet new android)
  2. Copy code and resources into the new project
  3. Update MSBuild properties (see references/android-migration-api.md)
  4. Update AndroidManifest.xml — remove <uses-sdk>, use csproj properties
  5. Delete Resource.designer.cs (regenerated automatically)
  6. Update NuGet dependencies
  7. Migrate binding libraries (if applicable)
  8. Replace Xamarin.Essentials with <UseMauiEssentials>true</UseMauiEssentials>
  9. Handle encoding changes
  10. Delete bin//obj/, build, test on physical devices

Strategy: Create a new project and copy code into it — don't edit the existing project file in place.

Critical Gotchas

⚠️ Remove <uses-sdk> from AndroidManifest.xml
xml
<!-- ❌ Xamarin-style — causes build warnings/errors -->
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="33" />

<!-- ✅ Use MSBuild properties instead -->
<TargetFramework>net8.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
⚠️ Delete Resource.designer.cs

This file is auto-generated. Leftover copies from Xamarin cause duplicate symbol errors. Delete it — it will be regenerated.

⚠️ No .dll.config or .exe.config Support

.dll.config and <dllmap> are not supported in .NET Core. If your app uses System.Configuration.ConfigurationManager, migrate to appsettings.json or platform preferences.

⚠️ Essentials: Override Permissions in Every Activity
csharp
// ❌ Forgetting this → permissions silently fail
// ✅ Required in EVERY Activity that uses Essentials
public override void OnRequestPermissionsResult(
    int requestCode, string[] permissions, Permission[] grantResults)
{
    Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);
    base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
}
⚠️ AndroidManifest.xml Location Changed

AndroidManifest.xml is now in the project root (not Properties/). The SDK-style project finds it there by default.

Platform-Specific Pitfalls

PitfallImpactMitigation
OEM rendering differencesUI bugs not visible on emulatorsTest on physical devices from multiple vendors
Shadow rendering varies by OEM/API levelInconsistent shadow appearanceImplement shadows in platform-specific handler code
Android Wear referencesNot supported in .NET for AndroidRemove Wear project references
MAndroidI18n removedEncoding errors at runtimeReplace with System.Text.Encoding.CodePages NuGet
AotAssemblies deprecatedBuild warningsUse RunAOTCompilation instead
jar2xml not supportedBinding library build failuresUse default class-parse parser
DebugType=full not supportedBuild errorsUse default portable
Show full SKILL.md (169 more words)Show less

NuGet Compatibility Note

Android is unique: packages targeting monoandroid still work on .NET for Android. No recompilation needed for most Android-specific packages. This is NOT true for iOS/Mac.

If no compatible version exists:

  1. Recompile with .NET TFMs (if you own it)
  2. Look for a preview .NET version
  3. Replace with a .NET-compatible alternative

API Currency Warning

If your migrated app will also adopt .NET MAUI controls (e.g., via UseMaui), check the maui-current-apis skill for deprecated MAUI APIs to avoid (ListView, Frame, Device.*, etc.).

Quick Checklist

  1. ☐ Created new .NET for Android project (dotnet new android)
  2. ☐ Set TargetFramework to net8.0-android (or later)
  3. ☐ Set SupportedOSPlatformVersion for minimum SDK
  4. ☐ Converted AndroidSupportedAbis → RuntimeIdentifiers
  5. ☐ Removed <uses-sdk> from AndroidManifest.xml
  6. ☐ Copied source, resources, and project properties
  7. ☐ Deleted Resource.designer.cs, bin/, obj/
  8. ☐ Updated NuGet dependencies
  9. ☐ Added UseMauiEssentials + Platform.Init() if using Essentials
  10. ☐ Overridden OnRequestPermissionsResult in every Activity
  11. ☐ Replaced MAndroidI18n with System.Text.Encoding.CodePages
  12. ☐ Verified AOT settings (RunAOTCompilation, not AotAssemblies)
  13. ☐ Tested on physical Android device(s) from multiple vendors

© davidortinau, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in plugins/maui-skills/skills/xamarin-android-migration of davidortinau/maui-skills.

  • SKILL.md
  • references/android-migration-api.md

Open the folder on GitHubat commit 79bb4bf

Compare with similar skills

Xamarin Android Migration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Xamarin Android Migration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Xamarin Android Migration this skilldavidortinau/maui-skills174—~1.4kAutomated safety check: PassMIT
Expo Brownfield Integrationmweinbach/agent-coworker1562 repos~900Automated safety check: NotesCustom licence
Simulator Audio E2Ehyochan/react-native-nitro-sound961—~1.1kAutomated safety check: PassMIT
Expo UIarcboxlabs/linkcode156—~1.2kAutomated safety check: PassMIT
Expo Deploymentkingstinct/react-native-healthkit7164 repos~930Automated safety check: PassMIT
Ksafeioannisa/KSafe332—~17kAutomated safety check: PassApache-2.0

Similar skills

  • Expo Brownfield Integration

    mweinbach/agent-coworker

    Helps add Expo and React Native to an existing native iOS or Android app, and choose between a prebuilt AAR or XCFramework and a fully integrated build.

    156 GitHub starsUsed in 2 repos~900 tokens
    MobileAuto-check: notes
  • Simulator Audio E2E

    hyochan/react-native-nitro-sound

    Build and run repeatable react-native-nitro-sound recorder/player regression tests on an iOS Simulator or Android emulator, with explicit virtual-device selection, microphone permission, Maestro…

    961 GitHub stars~1.1k tokensUpdated 9 days ago
    MobileAuto-check passed
  • Expo UI

    arcboxlabs/linkcode

    Framework (OSS). An agent skill from arcboxlabs/linkcode.

    156 GitHub stars~1.2k tokensUpdated 10 days ago
    MobileAuto-check passed
  • Expo Deployment

    kingstinct/react-native-healthkit

    Deploying Expo apps to iOS App Store, Android Play Store, web hosting, and API routes

    716 GitHub starsUsed in 4 repos~930 tokens
    MobileAuto-check passed
  • Ksafe

    ioannisa/KSafe

    Required before any reply that touches KSafe (by ksafe(...), ksafe.get/put, :ksafe-compose, :ksafe-biometrics), even a 'can KSafe do X?' question or a one-line change that looks like plain Kotlin.

    332 GitHub stars~17k tokensUpdated 5 days ago
    MobileAuto-check passed
  • Maui AI Debugging

    Redth/Maui.Gtk

    End-to-end workflow for building, deploying, inspecting, and debugging .NET MAUI and MAUI Blazor Hybrid apps as an AI agent.

    101 GitHub stars~4.1k tokensUpdated 5 mo ago
    MobileAuto-check passed

More from davidortinau/maui-skills

All 41 skills in this repo
  • Maui Hot Reload Diagnostics

    davidortinau/maui-skills

    Diagnose and troubleshoot .NET MAUI Hot Reload issues (C Hot Reload, XAML Hot Reload, Blazor Hybrid).

    174 GitHub stars~1.3k tokensUpdated 3 mo ago
    Auto-check passed
  • Maui Accessibility

    davidortinau/maui-skills

    Guide for making .NET MAUI apps accessible — screen reader support via SemanticProperties, heading levels, AutomationProperties visibility control, programmatic focus and announcements, and…

    174 GitHub stars~974 tokensUpdated 3 mo ago
    Auto-check passed
  • Maui Animations

    davidortinau/maui-skills

    .NET MAUI view animations, custom animations, easing functions, rotation, scale, translation, and fade effects.

    174 GitHub stars~911 tokensUpdated 3 mo ago
    Auto-check passed
  • Maui App Icons Splash

    davidortinau/maui-skills

    .NET MAUI app icon configuration, splash screen setup, SVG to PNG conversion at build time, composed/adaptive icons, and platform-specific icon and splash screen requirements for Android, iOS, Mac…

    174 GitHub stars~995 tokensUpdated 3 mo ago
    Auto-check passed
  • Maui App Lifecycle

    davidortinau/maui-skills

    .NET MAUI app lifecycle guidance covering the four app states (not running, running, deactivated, stopped), cross-platform Window lifecycle events, backgrounding and resume behaviour…

    174 GitHub stars~947 tokensUpdated 3 mo ago
    Auto-check passed
  • Maui Aspire

    davidortinau/maui-skills

    Guide for .NET MAUI apps consuming .NET Aspire-hosted backend services.

    174 GitHub stars~1.3k tokensUpdated 3 mo ago
    Auto-check passed

Works with

Categories

Questions about Xamarin Android Migration

What does Xamarin Android Migration do?

WORKFLOW SKILL - Guide for migrating Xamarin.Android native apps to .NET for Android. Xamarin Android Migration is an agent skill from davidortinau/maui-skills.NET for Android.

When should I use Xamarin Android Migration?

Xamarin Android Migration fits situations like: : migrate Xamarin.Android; upgrade Xamarin.Android to .NET; xamarin.Android to .NET for Android; android project migration.

How do I install Xamarin Android Migration in Claude Code?

Run `npx skills add davidortinau/maui-skills --skill xamarin-android-migration -a claude-code`. Or copy the skill folder (plugins/maui-skills/skills/xamarin-android-migration in davidortinau/maui-skills) into .claude/skills/xamarin-android-migration in your project. Claude Code loads it when a task matches its description.

How do I install Xamarin Android Migration in Codex?

Run `npx skills add davidortinau/maui-skills --skill xamarin-android-migration -a codex`. Or copy the skill folder (plugins/maui-skills/skills/xamarin-android-migration in davidortinau/maui-skills) into .agents/skills/xamarin-android-migration in your project. Codex loads it when a task matches its description.

Can I use Xamarin Android Migration in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davidortinau/maui-skills --skill xamarin-android-migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/xamarin-android-migration, .gemini/skills/xamarin-android-migration, .github/skills/xamarin-android-migration and .opencode/skills/xamarin-android-migration in your project.

What does Xamarin Android Migration need to run?

Going by SKILL.md and its folder, Xamarin Android Migration needs the command-line tools its instructions call (dotnet).

Does Xamarin Android Migration access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Xamarin Android Migration safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Xamarin Android Migration use?

Xamarin Android Migration is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Xamarin Android Migration use?

About 1.4k tokens (SKILL.md is roughly 5.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to Xamarin Android Migration?

Skills that share tags, products or a category with Xamarin Android Migration: Expo Brownfield Integration (mweinbach/agent-coworker, 156 stars), Simulator Audio E2E (hyochan/react-native-nitro-sound, 961 stars), Expo UI (arcboxlabs/linkcode, 156 stars) and Expo Deployment (kingstinct/react-native-healthkit, 716 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Xamarin Android Migration?

davidortinau (a GitHub user) maintains it in davidortinau/maui-skills, which has 174 GitHub stars. The repository holds 41 skills in this directory. The repository was last updated on July 6, 2026.

Source: davidortinau/maui-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.