Skip to main content
Version: Next

MP0001

Accesses a module result without declaring the dependency.

PropertyValue
CategoryUsage
Default severityError
AvailabilityPublic analyzer package

Configure severity

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