
Description
including-generated-files is an agent skill from the dotnet/skills collection, listed on skills.sh. It covers MSBuild integration for files that a build target generates. MSBuild's build phases generally ignore files created during the build, which causes three common problems: generated files are missing from the output directory, generated source files are not compiled, and globs do not pick up files created by the build. The skill explains the fix. For generated code files, the target adds them to the Compile item group, and for other physical files such as Content or None, it adds them to FileWrites, both within the target that creates them. An AI agent uses it when a target should create a source or content file but the artifact does not appear in the build. A skill is a SKILL.md file of instructions that an AI agent loads only when a task calls for it. The source is public on GitHub.…
Highlights
- Generated sources added to Compile
- FileWrites for generated physical files
- Explains why globs miss build outputs
- Fixes missing files in the output directory
Ratings & Reviews
No ratings yet
Be the first to rate including-generated-files.
People also visit

check-bin-obj-clash
Detects MSBuild projects with conflicting OutputPath or IntermediateOutputPath

build-perf-diagnostics
Diagnose MSBuild build performance bottlenecks using binary log analysis

msbuild-antipatterns
DO NOT INVOKE when the primary request explicitly asks to convert, migrate
including-generated-files FAQ
What does the including-generated-files skill do?
It shows an AI agent how to make a build-generated file take part in compilation and output, by registering it in the right MSBuild item groups.
Why does a generated file get ignored?
MSBuild's build phases generally do not see files created during the build, so they are left out of compile, output and globs unless the target registers them.
How do I install it?
Run: npx skills add https://github.com/dotnet/skills --skill including-generated-files
Is it open source?
Yes. The skill is in a public GitHub repository maintained by dotnet.
What are the best including-generated-files alternatives?
Popular alternatives to including-generated-files include directory-build-organization, property-patterns and build-parallelism. See all including-generated-files alternatives








