Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Xamarin.Android to .NET migration

Walks you through moving a Xamarin.Android app or library to .NET for Android, so it keeps building and shipping.

What we improved

Brought the property mapping table, the ABI to RuntimeIdentifier table and the encoding, AOT and binding steps into SKILL.md, so the skill works without opening the reference file. The reference file is kept for the project template, signin

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 Accurate Xamarin.Android to .NET for Android migration with property mappings, real gotchas, an error-to-fix table and a worked before and after project file.

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.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).

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. 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-android-migration
description: "Step by step guide for migrating a native Xamarin.Android app or library to .NET for Android (net10.0-android and similar). Covers creating the SDK-style project, which old csproj items and properties to drop or rename (AndroidSupportedAbis to RuntimeIdentifiers, AotAssemblies to RunAOTCompilation, jar2xml, dx, DebugType), moving uses-sdk into the project file, Resource.designer.cs and the .NET 8+ resource designer assembly, NuGet and AndroidX compatibility, binding library migration, Xamarin.Essentials to MAUI Essentials, encoding (MAndroidI18n), AOT, CLI builds and device testing. Use when asked to migrate, upgrade or convert a Xamarin.Android project or Android binding library to .NET. Not for Xamarin.Forms to .NET MAUI migrations or Xamarin.iOS projects, which follow different rules."
---
<!-- Modified by YourAISkill (youraiskill.com) on 2 December 2026 from the original by davidortinau. See CHANGES.md. -->

# Xamarin.Android to .NET for Android Migration

Xamarin support ended on 1 May 2024, so existing Xamarin.Android apps must move to .NET for Android to keep building against current Android API levels. This skill covers native Android apps and Android class or binding libraries. A worked before and after project file, the project template, CLI commands and the Essentials namespace table are in `references/android-migration-api.md`; everything needed to run a migration is below.

> **Field-tested advice:** Android migrations surface more UI bugs than iOS ones:
> OEM-specific rendering differences and issues that do not reproduce on emulators.
> Test on physical devices.

## Before you start

1. Read the old `.csproj` and note: package id, version code and name, min and target SDK, ABIs, signing settings, linker and AOT settings, every `PackageReference` or `packages.config` entry, and any `<AndroidResource>`, `<AndroidAsset>`, `<EmbeddedJar>`, `<LibraryProjectZip>` or `<TransformFile>` items.
2. Pick the target framework. Use a supported .NET release: `net10.0-android` (LTS) is the safe default today. Each `netX.0-android` targets one Android API level by default (`net8.0-android` is API 34, `net9.0-android` is API 35, `net10.0-android` is API 36), and that becomes the app's `targetSdkVersion`. Check Google Play's current target API requirement and the .NET support policy before choosing an older one.
3. If the app still uses the old `Xamarin.Android.Support.*` packages, plan the move to `Xamarin.AndroidX.*`. Doing that first, in the old project, keeps the two changes apart and makes failures easier to pin down.

## Migration workflow

**Strategy:** create a new SDK-style project and copy code into it. Do not edit the old project file in place.

1. Create the project: `dotnet new android --output MyApp --packageName com.mycompany.myapp` (use `androidlib` for a class library, `android-bindinglib` for a binding library).
2. Copy source files, `Resources/`, `Assets/` and the `AndroidManifest.xml` into the new folder. Do not copy `bin/`, `obj/` or `Resources/Resource.designer.cs`.
3. Copy properties across using the table below. Do not copy old `<Compile>`, `<AndroidResource>` or `<AndroidAsset>` include lists: SDK-style projects include those files automatically, and listing them again causes duplicate item errors (NETSDK1022). Old app projects say `<OutputType>Library</OutputType>` plus `<AndroidApplication>True</AndroidApplication>`; in the new project an app is `<OutputType>Exe</OutputType>`, so do not copy `OutputType` across. Drop `ProjectTypeGuids`, `AndroidApplication`, `AndroidResgenFile`, `MonoAndroidResourcePrefix`, `MonoAndroidAssetsPrefix` and the `Xamarin.Android.CSharp.targets` import; the SDK supplies them. A full before and after project file is in `references/android-migration-api.md`.
4. Move min and target SDK out of `<uses-sdk>` into the project file (see Critical gotchas).
5. Deal with `Properties/AssemblyInfo.cs` (see Critical gotchas).
6. Update NuGet dependencies to versions that support .NET for Android.
7. Migrate binding libraries, if any.
8. Replace Xamarin.Essentials with MAUI Essentials (`<UseMauiEssentials>true</UseMauiEssentials>`), if used.
9. Replace `MAndroidI18n` with the code pages encoding provider, if used.
10. Delete `bin/` and `obj/`, build Debug and Release, and test on physical devices.

## MSBuild property changes

| Xamarin.Android property | .NET for Android | Notes |
|---|---|---|
| `TargetFrameworkVersion` (`v13.0` etc.) | `TargetFramework` (`net10.0-android`) | Also sets the target API level |
...

From davidortinau's repository, MIT licence.

Related skills

  • Checked

    Compose UI test setup

    Sets up the right Gradle test dependencies for Jetpack Compose UI tests, so they launch instead of failing early.

    by skydoves 351
    8/101 credit
  • Checked

    Android Gradle Plugin upgrade

    Moves Kotlin Multiplatform projects to Android Gradle Plugin 9 and fixes the build failures it causes.

    by Kotlin 1.1k
    8/101 credit
  • Checked

    Android Edge-to-Edge Fix

    Makes Jetpack Compose apps draw edge to edge, so buttons, lists and text fields never hide behind system bars.

    by android 11k
    8/101 credit
  • Checked

    Offline Android LLM apps

    Builds an Android app that runs an open LLM on the phone with LiteRT, so it works without a server.

    by android 11k
    7/101 credit
  • Checked

    Android TV Compose Migration

    Moves an Android TV app from old Leanback screens to Compose for TV, with remote control focus that works.

    by android 11k
    7/101 credit
  • Checked

    CometChat Android Chat Setup

    Adds working CometChat chat screens to your Android app in Kotlin or Jetpack Compose, set up in the right order.

    by cometchat 182
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added