Open costin-zaharia-sonarsource opened 3 years ago
Issue could be around https://github.com/dotnet/roslyn/blob/6da1274c9d24c2f90a48290394a951b23617f2a3/src/Compilers/Core/Portable/SourceGeneration/GeneratorDriver.cs#L392
The full path used to write the file is retrieved here:
I'm not able to find a way to access GeneratedFilesOutputDirectory
from GeneratorDriver
to have the full path assigned to SyntaxTree.FilePath.
Hello,
In the Roslyn Sarif reports the file locations for source generator code are not pointing to the right location on disk, even if
EmitCompilerGeneratedFiles
is set to true.In SonarSource we parse these reports in order to import the raised issues and having the full path in the report (similar with the one for non generated code) will help us and the community write better tools which handle these files.
Expected Behavior:
Actual Behavior:
Thank you!