Web root is incorrect when using new minimal hosting API (WebApplication.CreateBuilder) #32415
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
bug
This issue describes a behavior which is not expected - a bug.
Done
This issue has been fixed
feature-minimal-hosting
✔️ Resolution: Fixed
The bug or enhancement requested in this issue has been checked-in!
Milestone
When using the new minimal hosting API (e.g.
WebApplication.CreateBuilder
) the web root folder is incorrectly set resulting in static files not working.Issue seems to be here somewhere as it looks like it's trying to combine a path that's already been combined in the constructor:
aspnetcore/src/DefaultBuilder/src/WebHostEnvironment.cs
Line 68 in c9fa4e1
@halter73 @davidfowl
Found in version 6.0.100-preview.5.21254.10
The text was updated successfully, but these errors were encountered: