MP0012
Requires generated CLI command methods to be virtual.
| Property | Value |
|---|---|
| Category | Usage |
| Default severity | Warning |
| Availability | Repository development only |
Configure severity
.editorconfig
dotnet_diagnostic.MP0012.severity = warning
Use none to disable the rule, or silent, suggestion, warning, or error to change its severity.
Suppress a specific occurrence
#pragma warning disable MP0012
// Code that intentionally violates MP0012.
#pragma warning restore MP0012