Skip to content

gitfool/dotnet-msbuild

v2609.1514.4735MIT

Comprehensive MSBuild and .NET build skills: failure diagnosis, performance optimization, code quality, and modernization. Ports the dotnet/skills dotnet-msbuild plugin to a Kiro power.

including-generated-files

Fix MSBuild targets that generate files during the build but those files are missing from compilation or output. 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 evaluation time before execution creates them, ensuring generated files are cleaned by the Clean target. Covers correct BeforeTargets timing (CoreCompile, BeforeBuild, AssignTargetPaths), adding to Compile/FileWrites item groups, using $(IntermediateOutputPath) instead of hardcoded obj/ paths. DO NOT USE FOR: C# source generators that already work via the Roslyn pipeline, T4 design-time generation that runs in Visual Studio, non-MSBuild build systems.

License
MIT
Read SKILL.md at the source

Pinned to revision 935bbc747e14, so it is the text this page describes rather than whatever the author pushed since.

Files

Every link opens the file at its source, pinned to the revision this page describes.