Closed
Description
Today WebApplicationBuilder
has some hacky logic to synchronize the WebApplicationBuilder.Configuration
ConfigurationManager
and the HostBuilder
's app IConfiguration
in case any custom configuration sources have been added via HostFactoryResolver. This logic can be found here.
The synchronization is not perfect and can lead to bugs like dotnet/aspnetcore#38185. We should look into adding an API to HostBuilder
to share IConfigurationBuilder
(s) with the WebApplicationBuilder
.