MPCLI004
Duplicate CLI switch in an options hierarchy.
| Property | Value |
|---|---|
| Category | Usage |
| Default severity | Error |
| Availability | Public analyzer package |
Configure severity
.editorconfig
dotnet_diagnostic.MPCLI004.severity = error
Use none to disable the rule, or silent, suggestion, warning, or error to change its severity.
Suppress a specific occurrence
#pragma warning disable MPCLI004
// Code that intentionally violates MPCLI004.
#pragma warning restore MPCLI004