-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Description
Description
The host is not loading secrets from the user secrets nor from the command line.
Reproduction Steps
See the repo above, or create a new worker service project. Observe the IConfigurationBuilder sources count be different when using Microsoft.Extensions.Hosting 5.0 and 6.0. Look at the HostBuilderContext.Configuration.Providers and observe that what is missing is user secrets and CommandLineConfigurationProvider.
Expected behavior
The loaded secrets should be the same.
Actual behavior
Missing secrets configurations when using 6.0.
Regression?
Yes, this worked under 5.0
Known Workarounds
No response
Configuration
No response
Other information
No response
Reactions are currently unavailable