Configuration
ASP.NET Core provides a comprehensive configuration framework that makes it easy to work with configuration settings. A configuration is considered a key-value pair. These configuration settings are stored in a variety of sources, such as JSON files, environment variables, and command-line arguments, or in the cloud, such as Azure Key Vault. In ASP.NET Core, these sources are referred to as configuration providers. Each configuration provider is responsible for loading configuration settings from a specific source.
ASP.NET Core supports a set of configuration providers, such as the following:
- The file configuration provider, such as,
appsettings.json
- The User secrets
- The environment variables configuration provider
- The command-line configuration provider
- The Azure App Configuration provider
- The Azure Key Vault configuration provider
The configuration of ASP.NET Core is provided by the Microsoft.Extension.Configuration
NuGet package...