Skip to main content
Version: Next

MP0018

Module class is not public.

PropertyValue
CategoryUsage
Default severityWarning
AvailabilityPublic analyzer package

Configure severity

.editorconfig
dotnet_diagnostic.MP0018.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 MP0018
// Code that intentionally violates MP0018.
#pragma warning restore MP0018