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
Henkypenky15mo 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 Kantousian15mo ago
It works! thanks friend! 😄
Henkypenky
Henkypenky15mo ago
np