Skip to content

Improve HostBuilder and WebApplicationBuilder Configuration integration #61634

Closed
@halter73

Description

@halter73

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions