Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

.Net 8 Blazor - Missing CSS file after publish

$
0
0

I'm starting a new .Net 8 Blazor application.

When I run the dotnet publish -c Release command and start the published application I get a 404 error for my css file. This doesn't happen when I developing (using the dotnet watch or dotnet run).

Here you can see it works on the dotnet run command

This is the error I am running into

Any help would be appreciated!

I've tried starting a new application in the hopes that I accidentally passed some arguments wrong.

edit:

Here are the steps to reproduce the error:

  1. in your terminal run dotnet new blazor -o ./Blazor.Host
  2. run cd ./Blazor.Host
  3. rundotnet publish
  4. run dotnet path/to/app/Blazor.Host.dll

It doesn't look like any of the static files are getting served


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>