Installation¶
This guide will walk you through the process of installing MudBlazor.Extensions in your Blazor project.
Prerequisites¶
Before installing MudBlazor.Extensions, ensure you have:
- A Blazor project (WebAssembly, Server, or Hybrid)
- MudBlazor installed and configured
- .NET 6.0 or later
MudBlazor Required
MudBlazor.Extensions requires MudBlazor to be installed. If you haven't installed MudBlazor yet, visit the official MudBlazor documentation for installation instructions.
Installation Methods¶
Using .NET CLI¶
The easiest way to install MudBlazor.Extensions is via the .NET CLI:
Using Package Manager Console¶
In Visual Studio, you can use the Package Manager Console:
Using Visual Studio NuGet Manager¶
- Right-click on your project in Solution Explorer
- Select "Manage NuGet Packages"
- Search for "MudBlazor.Extensions"
- Click "Install"
Manual Package Reference¶
Add the package reference directly to your .csproj file:
Version Selection
Using Version="*" will always get the latest version. For production, it's recommended to specify a specific version number.
Verify Installation¶
After installation, verify that the package is correctly installed:
- Build your project to ensure there are no errors
- Check your project file to confirm the package reference exists
- Restore packages if needed:
Platform-Specific Considerations¶
Blazor WebAssembly¶
No additional steps required. The package works out of the box.
Blazor Server¶
For Blazor Server applications, you may need to add middleware (see Setup page).
MAUI Blazor Hybrid¶
The package is compatible with MAUI Blazor Hybrid applications. Follow the standard installation steps.
Troubleshooting¶
Package Not Found¶
If you encounter issues finding the package:
- Ensure your NuGet sources include
nuget.org - Clear your NuGet cache:
- Try restoring packages again:
Version Conflicts¶
If you encounter version conflicts with MudBlazor:
- Ensure you're using compatible versions
- Check the changelog for compatibility information
- Update MudBlazor to the latest version if needed
Build Errors After Installation¶
If you experience build errors:
- Clean your solution:
- Rebuild:
- If issues persist, try deleting the
binandobjfolders and rebuilding
Next Steps¶
Now that you have MudBlazor.Extensions installed, proceed to the Setup guide to configure it in your application.
Getting Help¶
If you encounter issues during installation:
- Check the GitHub Issues
- Create a new issue with details about your problem
- Visit the MudBlazor Discord community