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:
|
WebRootFileProvider = new PhysicalFileProvider(Path.Combine(ContentRootPath, WebRootPath)); |
@halter73 @davidfowl
Found in version 6.0.100-preview.5.21254.10
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