I have a Blazor component named Comp.razor and nested inside it is a Comp.razor.css file. All of these files are located in a class library project. In my main project (the one I launch the app from), I referenced this component and everything works fine when the app launches.
However, I am facing an issue where I am unable to see any changes when I modify the CSS file and refresh the page. Strangely, if I modify the HTML file, the changes are reflected perfectly fine, but this is not the case with the isolated CSS file.
If anyone knows how to fix this issue, please let me know. Thank you.
PS: I tried disabling browser cashing but it didn't work. //
i tried to link CSS normally without CSS isolation and i ran into CSS file not found i placed the CSS file of the component in wwwroot under the CSS directory and linked it in the component with



#if DEBUG mvcBuilder.AddRazorRuntimeCompilation(); #endifMeaning css isolation only worked on published builds, and I had to live without it during development just so I can have runtime razor compilation.