dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.12k stars 4.04k forks source link

"Run Code Analysis and Suppress Active Issues" & "Configure Code Analysis" Issues shows on CPS projects but does nothing #27002

Closed davkean closed 6 years ago

davkean commented 6 years ago

Version Used: 15.8 Preview 3

We recently made a change that caused Project.Kind to return the legacy project system, this has caused "Run Code Analysis and Suppress Active Issues" and "Configure Code Analysis" to show up despite them not working.

Make note, "Run Code Analysis" does not show up, so it seems like these other two commands have different light up checks to it.

Steps to Reproduce:

  1. File -> New Console App (.NET Core)
  2. Right-click on project and point to Analyze

-or-

  1. Select project and choose Analyze

image

image image

davkean commented 6 years ago

Make note you need to actually load StanPackage first by running one of the Analyze commands in menu bar.

mavasani commented 6 years ago

Configure Code Analysis part ported to VSO bug 652026. I will soon send a Roslyn PR to fix the suppress active issues command.

mavasani commented 6 years ago

Note: This VSO PR renames and fixes the command to make it consistent for both CPS and non-CPS based projects, we don't run FxCop now as part of this command.