dotnet/roslyn

Can't diagnose analyzer error related to generated file.

Open

#50,166 opened on Dec 29, 2020

View on GitHub
 (3 comments) (0 reactions) (1 assignee)C# (4,257 forks)batch import
Area-AnalyzersBugFeature - Source Generatorshelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

Running build.cmd -a on roslyn, i get:

C:\github\roslyn\src\Compilers\CSharp\Portable\CSharpSyntaxGenerator\CSharpSyntaxGenerator.SourceGenerator\Syntax.xml.Main.Generated.cs(4565,44): error RS0016: Symbol 'UsingDirective' is not part of the declared API [C:\github\roslyn\sr
c\Compilers\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.csproj]
C:\github\roslyn\src\Compilers\CSharp\Portable\CSharpSyntaxGenerator\CSharpSyntaxGenerator.SourceGenerator\Syntax.xml.Main.Generated.cs(4574,44): error RS0016: Symbol 'UsingDirective' is not part of the declared API [C:\github\roslyn\sr
c\Compilers\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.csproj]
C:\github\roslyn\src\Compilers\CSharp\Portable\CSharpSyntaxGenerator\CSharpSyntaxGenerator.SourceGenerator\Syntax.xml.Main.Generated.cs(4578,44): error RS0016: Symbol 'UsingDirective' is not part of the declared API [C:\github\roslyn\sr
c\Compilers\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.csproj]

However, when i go to try to open those files to look at those lines so i can see what is being complained about, i don't see those files on disk at the path the error message specifies. So i can't figure out what's gone wrong or how to fix it.

Contributor guide