Add ability to suppress individual BuildCheck diagnostics #10647
Labels
10.0
Area: BuildCheck
needs-design
Requires discussion with the dev team before attempting a fix.
triaged
Context
BuildCheck doesn't have similar mechanism like
#pragma warning disable
for silencing the Roslyn analyzers.This was decided to be out of scope for the V1 (https://github.com/dotnet/msbuild/blob/main/documentation/specs/BuildCheck/BuildCheck.md#out-of-scope).
With the limiting of the number of reports per Check (#10625) - users might get to a situation where they are unable to ignore unwanted diagnostics and see others.
Workaround
Note
This will need a design of how the suppressions will be performed and recognized (e.g. xml comments)
The text was updated successfully, but these errors were encountered: