AD0001 Analyzer 'Microsoft.CodeAnalysis.CSharp.RemoveUnnecessarySuppressions.CSharpRemoveUnnecessarySuppressionsDiagnosticAnalyzer' threw an exception of type 'System.InvalidOperationException' #46588
Labels
Area-IDE
Bug
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
IDE-CodeStyle
Built-in analyzers, fixes, and refactorings
Milestone
With new Visual Studio release is raised a new warning when in project there is
GlobalSuppressions.cs
with scope onnamespaceanddescendants
. This is the warning text:Version Used:
Microsoft Visual Studio Community 2019 Version 16.7.0
C# Tools 3.7.0-6.20375.2+34202cc2f3e869fd70a26d8237f4552cf9e192cf
Steps to Reproduce:
netcoreapp3.1
GlobalSuppressions.cs
file with a sample SuppressMessage with scope onnamespaceanddescendants
. Example:Expected Behavior:
As for previous versions, I expect to not receive any warning.
Actual Behavior:
A warning is raised for this code.
The text was updated successfully, but these errors were encountered: