Install a .NET SDK locally for safe preview testing, specific-version pinning, or reproducible team setups — without modifying the system-wide installation. USE FOR: trying .NET previews safely, testing specific SDK versions, installing MAUI or other workloads on a preview, updating or replacing an existing local SDK, creating reproducible team/CI install scripts, configuring global.json paths.
安装
npx skills add dotnet/skills --skill setup-local-sdknpx skills add dotnet/skills --skill setup-local-sdk -a claude-code -gnpx skills add dotnet/skills --skill setup-local-sdk -a codex -ggemini skills install https://github.com/dotnet/skills.git --path plugins/dotnet/skills/setup-local-sdkgh skill install dotnet/skills setup-local-sdkgit clone --depth 1 https://github.com/dotnet/skills /tmp/dotnet__skills
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/dotnet__skills/plugins/dotnet/skills/setup-local-sdk ~/.claude/skills/setup-local-sdk # Claude Code
cp -R /tmp/dotnet__skills/plugins/dotnet/skills/setup-local-sdk ~/.agents/skills/setup-local-sdk # Codex, Cursor, Gemini CLI, Copilot, OpenCode