I've recently migrated a pet project from Blazor .NET 3.1 to .NET 5.0 and am trying to switch to using css isolation.
I've created a scss file (which compiles to a css file using the webcompiler extension) with the same prefix as my component:
I've included the generated css in my index.html file:
<link href="FinNodeWASM.Client.styles.css" rel="stylesheet">
Dotnet is generating the css correctly and appending the scope identifier attribute as expected:

However, when I look at the generated HTML I don't see the expected score identifier attribute there:


webcompilervisual studio extension to set up compilation of the scss. Then as long as your compiled .css file has the same name and is in the same folder as your .blazor file then it will be isolated.