The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
18.96k
stars
4.02k
forks
source link
Navigation to errors in files generated by a source generator in Roslyn from build output doesn't work in VS #66928
Open
AlekseyTs opened 1 year ago
For example, the build output window displays this path
src\Compilers\CSharp\Portable\CSharpSyntaxGenerator\CSharpSyntaxGenerator.SourceGenerator\Syntax.xml.Syntax.Generated.cs
and, after double clicking it, VS goes to a blank window,
From error window, VS goes to
Local\Temp\VSGeneratedDocuments\88c0daf0-ef0e-1bba-0412-f9788595e3e2\Syntax.xml.Syntax.Generated.cs
And the actual file that is updated in source control is
src\Compilers\CSharp\Portable\Generated\CSharpSyntaxGenerator\CSharpSyntaxGenerator.SourceGenerator\Syntax.xml.Syntax.Generated.cs
This is very confusing and feels very broken.