Source Generators is taking generated files as input when EmitCompilerGeneratedFiles and CompilerGeneratedFilesOutputPath are set #64705
-
If in a project using source generators I want to emit the generated files to the file system I can add the following to the project file:
This indeed emits the generated files in the filesystem in the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The default behavior is that generated files go into the intermediate directory, which implicitly excludes them from your project. By overriding |
Beta Was this translation helpful? Give feedback.
The default behavior is that generated files go into the intermediate directory, which implicitly excludes them from your project. By overriding
CompilerGeneratedFilesOutputPath
you're opting out of the default behavior you desire.