@dotnet/including-generated-files

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 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. INVOKES: no tools — pure knowledge skill.

View in AI SkillSafe app
Scanned · no findings
0 downloads
0 stars
0 demos
SKILL.md

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@dotnet/including-generated-files/verified)](https://skillsafe.ai/skill/@dotnet/including-generated-files/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@dotnet/including-generated-files/installs)](https://skillsafe.ai/skill/@dotnet/including-generated-files/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@dotnet/including-generated-files/scan)](https://skillsafe.ai/skill/@dotnet/including-generated-files/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@dotnet/including-generated-files/eval)](https://skillsafe.ai/skill/@dotnet/including-generated-files/)