roslyn: VS error list often populates with warnings despite suppression by .editorconfig

Version Used: 16.9 preview 3 (30730.13.main)

Steps to Reproduce:

git clone https://github.com/microsoft/CsWin32 --recursive
cd CsWin32
git checkout f963756f59f348b944a9e41884654e17a9bcdc74
.\Microsoft.Windows.Sdk.PInvoke.CSharp.sln

Open some of the source files in the test projects, or src\ScrapeDocs\Program.cs

Expected Behavior:

No errors or warnings in the error list. This matches dotnet build behavior which shows no errors/warnings.

Actual Behavior:

VS sometimes shows dozens of warnings, although their codes are suppressed in .editorconfig files found either in the project directory or a directory above.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 21 (18 by maintainers)

Most upvoted comments

So I got @AArnott’s repro to reproduce…once. @onyxmaster no luck with your repro unfortunately.

For anybody who hits this next: if you have the Project System Tools extension installed, it adds a command Tools > Log Roslyn Workspace Structure which will create a log file that might be useful here.

I’ve been hitting this again lately too. It’s not often, and closing/re-opening the solution seems to solve it.

The #49597 you closed as a duplicate has a repo and a video that shows repro steps. On my machine following these steps has a 100% repro rate, did you try those steps?