This skill provides comprehensive guidance for authoring robust MSBuild targets, ensuring full compatibility with the .NET SDK and Microsoft.Common.targets. It assists developers in implementing the three-level target chain (Before/Core/After), properly managing dependency chains to prevent silent overwrites, and correctly distinguishing between Returns and Outputs for optimal incremental build performance. Whether you are creating custom code generators or complex build-time validations, this skill ensures your MSBuild logic is efficient, maintainable, and integrates seamlessly into the standard build pipeline.
主な機能
01Distinguishes Returns from Outputs for query targets and cross-project communication
02Detects and fixes dependency chain overwriting in properties like CompileDependsOn
03Configures incremental build detection using precise Inputs and Outputs mapping
043,370 GitHub stars
05Implements canonical three-level Target/CoreTarget/DependsOn patterns
06Registers artifacts in FileWrites for accurate clean and incremental build behavior
ユースケース
01Debugging broken SDK target chains caused by improper Directory.Build.targets overrides
02Implementing custom build-time validation or analysis tools that run before or after standard build steps
03Creating custom code generation targets that hook into the standard C# Compile pipeline