I have a Net8 Blazor WebApp named "Contoso" which includes Razor Class Libraries "LibA" and "LibB". LibA is in the same Visual Studio solution and LibB is inside another solution.
When i start the WebApp it generates on the fly the stylesheet for all libraries. I can see that in the file "https://localhost:0000/Contoso.styles.css" that imports all stylesheet with the css from the components:
@import '_content/LibA/LibA.bundle.scp.css';@import '_content/LibB/LibB.ca3u9u6gjt.bundle.scp.css';All external libraries like "LibB" have a dynamic token "ca3u9u6gjt" in the stylesheet name. This changes every time the library is updated and has style changes.
How can i disable this behaviour and remove the hash?
We have to include the filenames directly because some have to be in a correct order. But i don't want to change the filename after every update. This behaviour is only since Net8.
What did i try so far?
I added this to the csproj-File of the WebApp and of LibB but it does not change anything:
<PropertyGroup><CssScopedGenerateSourceHash>false</CssScopedGenerateSourceHash></PropertyGroup>