Blazorise
Blazorise copied to clipboard
[Docs] Mention conflicting components workarounds
Some component names might conflict with the native Blazor components. Like ValidationSummary
. We need to mention the workarounds in the docs:
- define full namespace
<Blazorise.ValidationSummary>
- disable global namespaces(is possible)
If the user is migrating an existing app with lots of Microsoft form components, then this might be worth trying
- Add this to _Imports.razor
@using MSForms = Microsoft.AspNetCore.Components.Forms
- Prefix the existing ValidationSummary components with
MSForms.
- Now the app should compile again
- As they migrate each form, remove the
MSForms.
prefix
@mrpmorris thanks for the suggestion.