Blazor doesn't add CSS Isolation file ✅

Hey guys, I was tried to add a CSS Isolation file in my Blazor aplication (I'm using .NET 7), but this file doesn't load in aplication.I'd like to know why this occurred?
3 Replies
Henkypenky
Henkypenky2y ago
you need to add it to wwwroot/index.html or Pages/_Host.cshtml depending wheter it's blazor wasm or server. In the form of:
<link href="{ASSEMBLY NAME}.styles.css" rel="stylesheet">
<link href="{ASSEMBLY NAME}.styles.css" rel="stylesheet">
Ale Kantousian
Ale KantousianOP2y ago
It works! thanks friend! 😄
Henkypenky
Henkypenky2y ago
np
Want results from more Discord servers?
Add your server