Guide for modernizing and migrating MSBuild project files to SDK-style format. Only activate in MSBuild/.NET build context. USE FOR: converting legacy .csproj/.vbproj with verbose XML to SDK-style, migrating packages.config to PackageReference, removing Properties/AssemblyInfo.cs in favor of auto-generation, eliminating explicit <Compile Include> lists via implicit globbing, consolidating shared…
安装
npx skills add dotnet/skills --skill msbuild-modernizationnpx skills add dotnet/skills --skill msbuild-modernization -a claude-code -gnpx skills add dotnet/skills --skill msbuild-modernization -a codex -ggemini skills install https://github.com/dotnet/skills.git --path plugins/dotnet-msbuild/skills/msbuild-modernizationgh skill install dotnet/skills msbuild-modernizationgit clone --depth 1 https://github.com/dotnet/skills /tmp/dotnet__skills
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/dotnet__skills/plugins/dotnet-msbuild/skills/msbuild-modernization ~/.claude/skills/msbuild-modernization # Claude Code
cp -R /tmp/dotnet__skills/plugins/dotnet-msbuild/skills/msbuild-modernization ~/.agents/skills/msbuild-modernization # Codex, Cursor, Gemini CLI, Copilot, OpenCode