What problem does it solve? Files generated during an MSBuild build are invisible to the build process because globs expand during the evaluation phase, before the files exist. This causes generated source files to be skipped by compilation (e.g., CS0246 errors for types that should exist), generated content to be missing from the output directory, and stale artifacts to survive the Clean target. ## Core Features & Use Cases - Correct Target Timing: Hooks file-generation targets with BeforeTargets="CoreCompile;BeforeCompile" for source files, BeforeBuild for content files, and AssignTargetPaths as a fallback. - Item Group Registration: Adds generated files to Compile, None, or Content items plus the FileWrites item group so the Clean target removes them. - Portable Paths: Uses $(IntermediateOutputPath) instead of hardcoded obj\ paths so builds work with redirected intermediate output. - Use Case: A custom MSBuild task generates a .cs file during the build, but the compiler reports the type does not exist. Add the file to Compile and FileWrites inside a target running before CoreCompile to fix it. ## Quick Start Ask the assistant to fix your MSBuild target so the source files it generates are compiled and cleaned properly.