Fix MSBuild targets that generate files during the build but those files are missing from compilation or output. Only activate in MSBuild/.NET build context. USE FOR: generated source files not compiling (CS0246 for a type that should exist), custom build tasks that create files but they are invisible to subsequent targets, globs not capturing build-generated files because they expand at…
Install
npx skills add dotnet/skills --skill including-generated-filesnpx skills add dotnet/skills --skill including-generated-files -a claude-code -gnpx skills add dotnet/skills --skill including-generated-files -a codex -ggemini skills install https://github.com/dotnet/skills.git --path plugins/dotnet-msbuild/skills/including-generated-filesgh skill install dotnet/skills including-generated-filesgit 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/including-generated-files ~/.claude/skills/including-generated-files # Claude Code
cp -R /tmp/dotnet__skills/plugins/dotnet-msbuild/skills/including-generated-files ~/.agents/skills/including-generated-files # Codex, Cursor, Gemini CLI, Copilot, OpenCode