Description
Hi, I come from projects written in ASP.NET Core MVC, where we use PublishSingleFile
, SelfContained
, and <EmbeddedResource Include="wwwroot\**" />
directives, and everything works perfectly. This is useful in cases where having a single file for production environments makes updates easier — including static content.
Now we are moving to Blazor Server (using render mode InteractiveServer), but we're experiencing issues with isolated CSS, both in the main project and in the Razor libraries we use. The problem is that <EmbeddedResource Include="wwwroot\**" />
includes files before the isolated CSS are built. We tried configuring custom Target
s on the project, but none of them worked.
Is there a way to embed the wwwroot
folder including all the isolated CSS, so we can have a single-file deployment for production?