How can I debug Blazor WebAssembly ASP.NET Core hosted when using Docker or Docker Compose?

Viewed 521

Blazor WebAssembly ASP.NET Core hosted project does not copy the client project wwwroot to the output folder of server project when configuration is Debug or Release, except I use Publish.

This means it can not work properly for docker-compose debugging or release.

if you run the docker or compose project, then access http://localhost you will get 404 not found. But if you access http://localhost/controller it works well.

more details please read this: https://github.com/dotnet/aspnetcore/issues/20613

So my question is how to debug it?

0 Answers
Related