css isolation not working after publish blazor wasm

Prathamesh Shende
401
Reputation points
Hi,
I created a css isolation file for MainLayout.razor with is MainLayout.razor.css.
after publishing the project the css inside that css isolation is not working.
<link href="Stack.Client.styles.css" rel="stylesheet" /> I also added this into index.html file. so what is the issue?, I am using .net 7 framework.
Sign in to answer