What problem does it solve? Writing custom MSBuild targets in .NET projects often fails due to unclear target ordering, missing incremental Inputs/Outputs, wrong SDK hook points, and copy-to-output rules that silently skip files. This Skill provides the execution-phase knowledge needed to author targets that run at the right time, stay incremental, and produce correct build and publish output. ## Core Features & Use Cases - Target Ordering and SDK Hooks: Explains DependsOnTargets, BeforeTargets, AfterTargets, Returns semantics, and every SDK hook point from Restore through Build, Publish, and Pack. - Incremental and Generated Files: Covers Inputs/Outputs timestamp checks, marker files, FileWrites, and generating source or manifest files under IntermediateOutputPath. - Tasks, Batching, and Errors: Details Exec, Copy, MSBuild, and inline RoslynCodeTaskFactory tasks, metadata batching rules, ContinueOnError modes, and warning-as-error switches. - Use Case: When adding a target that generates a BuildInfo.g.cs file before compilation, use this Skill to hook CoreCompile correctly, declare Inputs and Outputs for incremental builds, and register the file in FileWrites so Clean removes it. ## Quick Start Ask the AI to write an MSBuild target that generates a source file before CoreCompile with proper incremental Inputs and Outputs using this Skill.