Serpent5.Extensions.Configuration provides a single AddHostDefaults
extension method for IConfigurationBuilder
, which configures the following configuration pipeline:
- appsettings.json (optional, reloadOnChange)
- appsettings.[Environment].json (optional, reloadOnChange)
- User Secrets (Development only)
- Environment Variables
- Command Line
This configuration pipeline is intended to mimic that provided by Host.CreateDefaultBuilder
, allowing for use outside of a Host
-based environment.