Persisting output files from source generators
PreviousDisable diagnostic analyzers for entire folder/submodulesNextUse C# 9 records in non-net5.0 projects
Last updated
Last updated
Some time back, I had my own I/O code that for troubleshooting. This is no longer needed since you can now set
That will emit the sources to the $(IntermediateOutputPath)/generated/[GeneratorAssembly]/[GeneratorTypeFullName]
folder by default. If you want to also change where the generated sources are placed, you can additionally set the CompilerGeneratedFilesOutputPath
property.