Suppressing analyzer diagnostics in IDE should generate a GlobalSuppresions.cs file using UnconditionalSuppressMessage
#2251
Labels
Milestone
UnconditionalSuppressMessage
#2251
Currently, if a user chooses to suppress the diagnostics produced by the trimmer analyzer and clicks on the option given by the IDE, a global suppressions file will be generated with a list of assembly-level
SuppressMessage
attributes. However, this does not work for the diagnostics generated by the trimmer analyzer, since these must be unconditionally suppressed, otherwise the trimmer will keep emitting warnings when publishing. We should look into generating a global suppressions file that usesUnconditionalSuppressMessage
instead.Example of the GlobalSuppressions.cs file that is today generated:
The text was updated successfully, but these errors were encountered: