MudBlazorLinter 9.0.0
See the version list below for details.
dotnet add package MudBlazorLinter --version 9.0.0
NuGet\Install-Package MudBlazorLinter -Version 9.0.0
<PackageReference Include="MudBlazorLinter" Version="9.0.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="MudBlazorLinter" Version="9.0.0" />
<PackageReference Include="MudBlazorLinter"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add MudBlazorLinter --version 9.0.0
#r "nuget: MudBlazorLinter, 9.0.0"
#:package MudBlazorLinter@9.0.0
#addin nuget:?package=MudBlazorLinter&version=9.0.0
#tool nuget:?package=MudBlazorLinter&version=9.0.0
MudBlazorLinter
A Roslyn analyzer for MudBlazor components to enforce best practices and detect common issues.
Compatibility
This analyzer is compatible with:
- .NET 8.0 and later
- .NET 9.0 (Standard Term Support)
- .NET 10.0 (Latest)
- Visual Studio 2022 and later
- Visual Studio Code with C# extension
- JetBrains Rider 2022.3 and later
The analyzer targets netstandard2.0 for maximum compatibility.
Installation
This package is automatically installed as a development dependency and will run during build.
dotnet add package MudBlazorLinter
Rules
MBL001: Missing [Parameter] attribute
Severity: Warning
Detects public properties in Blazor components that should have the [Parameter] attribute.
Example - Before:
public class MyComponent : ComponentBase
{
public string Value { get; set; } // ⚠️ Warning MBL001
}
Example - After Fix:
public class MyComponent : ComponentBase
{
[Parameter]
public string Value { get; set; } // ✅ Fixed
}
Configuration
You can configure rule severity in your .editorconfig file:
# Disable MBL001
dotnet_diagnostic.MBL001.severity = none
# Make MBL001 an error
dotnet_diagnostic.MBL001.severity = error
# Make MBL001 a suggestion
dotnet_diagnostic.MBL001.severity = suggestion
More Information
License
MIT
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
v10.0.0: Initial release with MudBlazor CSS utility linting support. Detects inline styles in Razor files and suggests MudBlazor utility classes. Includes MBL001-MBL004 diagnostics with automatic code fixes.