MUD0001
Identifies MudBlazor parameters that have been removed or renamed in MudBlazor v7.
The warning will only indicate the correct .razor file not the exact location.
Configure the analyzer by adding the code below to your .csproj
file.
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <MudIllegalParameters>V7IgnoreCase</MudIllegalParameters> </PropertyGroup>
Option | Description | Default |
---|---|---|
V7IgnoreCase |
Identify parameters ignoring case | true |
V7CaseSensitive |
Identify parameters with case matching | |
Disabled |
Don't identify parameter issues |
MUD0002
Identifies attributes set on MudBlazor components that don't match a defined pattern. This helps prevent parameter errors such as typos.
The warning will only indicate the correct .razor file not the exact location.
Configure the analyzer by adding the code below to your .csproj
file.
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <MudAllowedAttributePattern>LowerCase</MudAllowedAttributePattern> </PropertyGroup>
Option | Description | Default |
---|---|---|
LowerCase |
Only allow lower case attributes | true |
DataAndAria |
Only allow data-* and aria-* attributes | |
None |
Don't allow any additional attributes | |
Any |
Allows any extra attributes |