❔ Generator setting wrong (not existing) source path in the PDB file
Hi!
I'm generating some classes with a custom generator (Roslyn).
When the PDB file is generated, the path to the generated document is wrong, making impossible to debug it.
In the PDB file, the path to the generated source is relative to the generator project, and not to the project that is consuming the generator:
Also, this file doesn't seem to exist.
Enabling the
EmitCompilerGeneratedFiles
project option and setting the path manually will generate the file inside the current project path, and not the generator project path. Also, changing the CompilerGeneratedFilesOutputPath
does not change the PDB document path.2 Replies
The path is also wrong in the
Type
entries, inside the PDB file:
I'm opening the PDB contents inside DotPeek.Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.