You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensures `DotNetConsole.Configuration` properly reflects all configuration providers, including those added via `ConfigureAppConfiguration`, when accessed early in the application lifecycle. This is achieved by building the configuration root only once upon first access and rebuilding it when new configuration delegates are added.
Previously, `DotNetConsole.Configuration` was built too early, before custom `ConfigureAppConfiguration` delegates could be applied, leading to missing configuration sources. This change modifies the `DotNetConsoleBuilder` to create an `IConfigurationBuilder` initially and then builds the full `IConfigurationRoot` on-demand, incorporating all accumulated `ConfigureAppConfiguration` delegates.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
12
12
-`ConfigureAppConfiguration` method to `DotNetConsoleBuilder` (re-)enabling custom configuration providers
13
13
14
+
## Fixed
15
+
16
+
- Fixed configuration provider timing: `DotNetConsole.Configuration` now properly reflects all configuration providers (including those added via `ConfigureAppConfiguration`) when accessed early in the application lifecycle.
0 commit comments