This project contains reproductions of an issue when using dotnet pack to pack a Blazor Server application into a dotnet tool package. Accessing any of the static assets from wwwroot results in a 404.
- Check out repo
cd DotnetToolStaticFilesNotFound
dotnet pack
dotnet tool install -g --add-source .\bin\Debug\ DotnetToolStaticFilesNotFound
cd ..
- change directory so the wwwroot isn't in your current path- Load
localhost:5000
in a browser. No css can be found.