Uh oh!
There was an error while loading. Please reload this page.
Do not override content root with default - #79242
Conversation
ghost
commented
Dec 5, 2022
Tagging subscribers to this area: @dotnet/area-extensions-hosting Issue DetailsThis fixes #78583 which is a regression between .NET 6 and .NET 7 where the impact is that The issue was customer reported. There is a workaround of using the This issue is caused by
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
eerhardt
left a comment
There was a problem hiding this comment.
LGTM. Sorry for the delay in approving.
halter73
commented
Dec 8, 2022
/backport to release/7.0 |
Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/3650905524 |
This fixes#78583 which is a regression between .NET 6 and .NET 7 where the impact is that
ASPNETCORE_CONTENTROOTalways gets ignored.The issue was customer reported. There is a workaround of using the
DOTNET_CONTENTROOTor even justCONTENTROOTenvironment variables instead, but theASPNETCORE_environment variable prefix is common. I plan to backport this for .NET 7 servicing.This issue is caused by
HostApplicationBuilderoverriding the content root configuration passed in by ASP.NET Core'sWebApplicationBuilderviaHostApplicationBuilderSettings.Configurationwith the CWD. This fix changes theHostApplicationBuilderto only configure the default content root to be CWD if it has not already been configured manually.