Make .NET projects compatible with Native AOT and trimming by systematically resolving IL trim/AOT analyzer warnings. USE FOR: making projects AOT-compatible, fixing trimming warnings, resolving IL warnings (IL2026, IL2070, IL2067, IL2072, IL3050), adding DynamicallyAccessedMembers annotations, enabling IsAotCompatible.
安装
npx skills add dotnet/skills --skill dotnet-aot-compatnpx skills add dotnet/skills --skill dotnet-aot-compat -a claude-code -gnpx skills add dotnet/skills --skill dotnet-aot-compat -a codex -ggemini skills install https://github.com/dotnet/skills.git --path plugins/dotnet-upgrade/skills/dotnet-aot-compatgh skill install dotnet/skills dotnet-aot-compatgit clone --depth 1 https://github.com/dotnet/skills /tmp/dotnet__skills
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/dotnet__skills/plugins/dotnet-upgrade/skills/dotnet-aot-compat ~/.claude/skills/dotnet-aot-compat # Claude Code
cp -R /tmp/dotnet__skills/plugins/dotnet-upgrade/skills/dotnet-aot-compat ~/.agents/skills/dotnet-aot-compat # Codex, Cursor, Gemini CLI, Copilot, OpenCode