Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

.NET x86-to-Graviton Migration Skill

Validates .NET application compatibility with AWS Graviton (ARM64) architecture and applies the minimum changes required to run on ARM64.

Before you run it

The skill is provided as is, for migration assessment, without warranty, under the licenses of the aws-graviton-getting-started repository (see LICENSE-SUMMARY). Review and test every change it makes before the change reaches production. It works on the project you bring to it, and your AI assistant runs its commands in your shell, with your permissions and network access:

  • Phase 1 evaluates the projects’ MSBuild files, restores a scratch copy of the solution (and builds one for a Windows starting point), and runs the target images’ own tools in containers. The opening of references/phase1-static-analysis.md lists every step that runs code.
  • Phase 2 changes package versions, project files, architecture checks in the code, deployment settings, Dockerfiles and CI files.
  • Phase 3 builds and publishes the project and runs its tests and the application, on an ARM64 host or in an arm64 container. When the repository needs a .NET SDK that is not installed, it downloads one into a temporary folder with Microsoft’s install script.
  • The skill writes its reports into graviton-validation/dotnet-x86-to-graviton/ at the project root. After each step that changes files, it commits to the local git repository, which it creates with git init when there is none. It never pushes: review the commits before you push them.

Run it on a project whose code you would build and run yourself. For a repository you did not write or do not trust, run it in a disposable container or VM.

What it does

This skill guides an AI coding assistant through a complete .NET Graviton migration:

  1. Static Analysis: Checks, by content, that every resolved NuGet package (including transitives) ships an aarch64 native file for each target runtime identifier and the target’s C library, glibc, libstdc++ and page size, and scans for native files committed to the repository, P/Invoke loads, x86 intrinsics, project settings that pin x64, amd64-pinned Dockerfiles, Lambda descriptors and Windows-only APIs
  2. Compatibility Resolution: Updates only ARM64-blocking packages (to the lowest version whose linux-arm64 native files load on the target), regenerates lock files through the project’s own package management, adds Arm64 code paths, fixes project and deployment settings, and documents Graviton runtime recommendations without applying them
  3. Validation: Builds, publishes, tests and starts the application on ARM64, scans every publish output and container image by content, classifies failures, and produces a structured migration report

The skill is scoped strictly to ARM64 compatibility. It will not change target frameworks (unless a team approves a change that Graviton requires), switch package management, modernize dependencies, or fix security issues; only what’s required for Graviton.

Applications that run on Windows today, on modern .NET or .NET Framework, reach Graviton through Linux: the skill plans the move to modern .NET on Linux as one decision for the solution, and reports Windows Forms, WPF and ASP.NET Web Forms projects as blockers with options.

It works with PackageReference projects, central package management, lock files, packages.config and Paket.

Quick Start

Copy this folder into your .NET project:

mkdir -p /path/to/your/project/.skills && \
  rm -rf /path/to/your/project/.skills/dotnet-x86-to-graviton && \
  cp -r tools/skills/migration/dotnet-x86-to-graviton /path/to/your/project/.skills/

Run it from a clone of this repository; git rev-parse HEAD in the clone shows the commit you copied. Read the skill’s files before its first run.

Then ask your AI assistant:

Run the dotnet-x86-to-graviton skill on this project

Customizing for your environment (optional)

By default the skill uses neutral, vendor-agnostic defaults. To orient it around your team’s toolchain (target runtime identifiers such as linux-musl-arm64 for Alpine images, where the validation SDK comes from, a preferred test command, an internal image registry, your cluster’s ARM64 node labels, the hosts and images you deploy to), copy the template to a skill-config.md at your project root and fill in what applies:

cp .skills/dotnet-x86-to-graviton/references/skill-config.template.md \
   skill-config.md

The config lives in your repo (not the skill folder), so skill updates never overwrite it. It steers how the transformation runs but never widens its scope; see references/skill-configuration.md.

Skill Files

summaries.md is the canonical index of every file in this skill, with its purpose and when it is read. Start at SKILL.md; it routes to everything else at the step that needs it.

Output

The skill produces a graviton-validation/dotnet-x86-to-graviton/ folder in the project root with structured reports:

  • 00-summary.md: Executive summary and exit criteria checklist
  • 01-project-assessment.md: Deployment type, starting point, package management, target frameworks, SDK and target OS
  • 02-native-library-report.md: Native files committed to the repository, native loads and downloads, and their resolutions
  • 03-dependency-compatibility-report.md: Per-package verdicts with per-RID evidence
  • 04-code-scan-findings.md: Architecture-specific code, project settings, Windows-only APIs and Dockerfile findings
  • 05-runtime-configuration.md: Graviton runtime recommendations (documented, not applied)
  • 06-build-test-results.md: Build, publish, output scan and test results