Microsoft.Extensions.Configuration.Abstractions 9.0.11

About

Provides abstractions of key-value pair based configuration. Interfaces defined in this package are implemented by classes in Microsoft.Extensions.Configuration and other configuration packages.

Key Features

  • Abstractions for string key-value pair configuration sources and sections
  • Path conventions of keys establishing a heirachy of values
  • Support for multiple configuration sources, aggregating and defining precdence for values
  • Support for reload on change

How to Use

The example below shows a small code sample using this library and trying out the ConfigurationKeyName attribute available since .NET 6:

public class MyClass
{
    [ConfigurationKeyName("named_property")]
    public string NamedProperty { get; set; }
}

Given the simple class above, we can create a dictionary to hold the configuration data and use it as the memory source to build a configuration section:

var dic = new Dictionary<string, string>
{
    {"named_property", "value for named property"},
};

var config = new ConfigurationBuilder()
    .AddInMemoryCollection(dic)
    .Build();

var options = config.Get<MyClass>();
Console.WriteLine(options.NamedProperty); // returns "value for named property"

Main Types

The main types provided by this library are:

  • Microsoft.Extensions.Configuration.IConfiguration
  • Microsoft.Extensions.Configuration.IConfigurationBuilder
  • Microsoft.Extensions.Configuration.IConfigurationProvider
  • Microsoft.Extensions.Configuration.IConfigurationRoot
  • Microsoft.Extensions.Configuration.IConfigurationSection

Additional Documentation

Feedback & Contributing

Microsoft.Extensions.Caching.Abstractions is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Showing the top 20 packages that depend on Microsoft.Extensions.Configuration.Abstractions.

Packages Downloads
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
6,242
DotNetEnv
A .NET library to load environment variables from .env files
5,813
Microsoft.Extensions.Hosting.Abstractions
Hosting and startup abstractions for applications.
5,763
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
5,758
Microsoft.Extensions.Configuration.Binder
Provides the functionality to bind an object to data in configuration providers for Microsoft.Extensions.Configuration. This package enables you to represent the configuration data as strongly-typed classes defined in the application code. To bind a configuration, use the Microsoft.Extensions.Configuration.ConfigurationBinder.Get extension method on the IConfiguration object. To use this package, you also need to install a package for the configuration provider, for example, Microsoft.Extensions.Configuration.Json for the JSON provider.
5,746
Microsoft.Extensions.Logging.Configuration
Configuration support for Microsoft.Extensions.Logging.
5,623
Microsoft.Extensions.Options.ConfigurationExtensions
Provides additional configuration specific functionality related to Options.
5,615
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
5,494
Microsoft.Extensions.Configuration.Binder
Provides the functionality to bind an object to data in configuration providers for Microsoft.Extensions.Configuration. This package enables you to represent the configuration data as strongly-typed classes defined in the application code. To bind a configuration, use the Microsoft.Extensions.Configuration.ConfigurationBinder.Get extension method on the IConfiguration object. To use this package, you also need to install a package for the configuration provider, for example, Microsoft.Extensions.Configuration.Json for the JSON provider.
3,851
Microsoft.Extensions.Hosting.Abstractions
Hosting and startup abstractions for applications.
3,248
Microsoft.Extensions.Configuration.FileExtensions
Provides a base class for file-based configuration providers used with Microsoft.Extensions.Configuration and extension methods for configuring them.
2,910
Microsoft.Extensions.Configuration.CommandLine
Command line configuration provider implementation for Microsoft.Extensions.Configuration. This package enables you to read configuration parameters from the command line arguments of your application. You can use CommandLineConfigurationExtensions.AddCommandLine extension method on IConfigurationBuilder to add the command line configuration provider to the configuration builder.
2,908
Microsoft.Extensions.Configuration.EnvironmentVariables
Environment variables configuration provider implementation for Microsoft.Extensions.Configuration. This package enables you to read configuration parameters from environment variables. You can use EnvironmentVariablesExtensions.AddEnvironmentVariables extension method on IConfigurationBuilder to add the environment variables configuration provider to the configuration builder.
2,908
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
2,908
Microsoft.Extensions.Configuration.Json
JSON configuration provider implementation for Microsoft.Extensions.Configuration. This package enables you to read your application's settings from a JSON file. You can use JsonConfigurationExtensions.AddJsonFile extension method on IConfigurationBuilder to add the JSON configuration provider to the configuration builder.
2,905
Microsoft.Extensions.Configuration.UserSecrets
User secrets configuration provider implementation for Microsoft.Extensions.Configuration. User secrets mechanism enables you to override application configuration settings with values stored in the local secrets file. You can use UserSecretsConfigurationExtensions.AddUserSecrets extension method on IConfigurationBuilder to add user secrets provider to the configuration builder.
2,902
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
2,886
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
2,818
Microsoft.Extensions.Configuration.FileExtensions
Extension methods for configuring file-based configuration providers for Microsoft.Extensions.Configuration.
2,817
Microsoft.Extensions.Configuration.EnvironmentVariables
Environment variables configuration provider implementation for Microsoft.Extensions.Configuration.
2,812

https://go.microsoft.com/fwlink/?LinkID=799421

.NET Framework 4.6.2

.NET 8.0

.NET 9.0

.NET Standard 2.0

Version Downloads Last updated
10.0.0 8 11/17/2025
10.0.0-rc.2.25502.107 12 10/15/2025
10.0.0-rc.1.25451.107 18 09/09/2025
10.0.0-preview.7.25380.108 13 08/14/2025
10.0.0-preview.6.25358.103 17 07/16/2025
10.0.0-preview.5.25277.114 17 06/09/2025
10.0.0-preview.4.25258.110 26 05/13/2025
10.0.0-preview.3.25171.5 28 04/11/2025
10.0.0-preview.2.25163.2 30 03/25/2025
10.0.0-preview.1.25080.5 29 02/27/2025
9.0.11 5 11/13/2025
9.0.10 8 10/15/2025
9.0.9 8 09/13/2025
9.0.8 12 08/07/2025
9.0.7 20 07/13/2025
9.0.6 21 06/12/2025
9.0.5 29 05/17/2025
9.0.4 23 04/12/2025
9.0.3 27 03/14/2025
9.0.2 29 02/13/2025
9.0.1 35 01/20/2025
9.0.0 871 11/12/2024
9.0.0-rc.2.24473.5 40 10/09/2024
9.0.0-rc.1.24431.7 37 09/18/2024
9.0.0-preview.7.24405.7 45 08/15/2024
9.0.0-preview.6.24327.7 44 07/19/2024
9.0.0-preview.5.24306.7 41 06/25/2024
9.0.0-preview.4.24266.19 49 05/28/2024
9.0.0-preview.3.24172.9 52 04/11/2024
9.0.0-preview.2.24128.5 59 03/25/2024
9.0.0-preview.1.24080.9 63 03/03/2024
8.0.0 5,753 11/15/2023
8.0.0-rc.2.23479.6 62 10/17/2023
8.0.0-rc.1.23419.4 58 09/14/2023
8.0.0-preview.7.23375.6 55 08/17/2023
8.0.0-preview.6.23329.7 64 07/20/2023
8.0.0-preview.5.23280.8 62 06/28/2023
8.0.0-preview.4.23259.5 59 06/08/2023
8.0.0-preview.3.23174.8 56 04/23/2023
8.0.0-preview.2.23128.3 520 04/03/2023
8.0.0-preview.1.23110.8 61 06/30/2023
7.0.0 521 02/18/2023
7.0.0-rc.2.22472.3 55 03/03/2023
7.0.0-rc.1.22426.10 54 06/29/2023
7.0.0-preview.7.22375.6 51 09/24/2022
7.0.0-preview.6.22324.4 51 07/02/2023
7.0.0-preview.5.22301.12 64 07/01/2023
7.0.0-preview.4.22229.4 52 07/02/2023
7.0.0-preview.3.22175.4 55 06/29/2023
7.0.0-preview.2.22152.2 63 06/11/2023
7.0.0-preview.1.22076.8 56 05/04/2022
6.0.2-mauipre.1.22102.15 56 12/01/2022
6.0.2-mauipre.1.22054.8 62 06/29/2023
6.0.1 40 11/12/2024
6.0.0 3,253 11/10/2021
6.0.0-rc.2.21480.5 50 06/24/2023
6.0.0-rc.1.21451.13 54 06/29/2023
6.0.0-preview.7.21377.19 66 12/20/2021
6.0.0-preview.6.21352.12 56 06/30/2023
6.0.0-preview.5.21301.5 65 06/07/2023
6.0.0-preview.4.21253.7 61 11/28/2022
6.0.0-preview.3.21201.4 66 06/30/2023
6.0.0-preview.2.21154.6 54 06/30/2023
6.0.0-preview.1.21102.12 58 07/01/2023
5.0.0 75 02/08/2021
5.0.0-rc.2.20475.5 54 06/27/2023
5.0.0-rc.1.20451.14 71 10/25/2022
5.0.0-preview.8.20407.11 58 06/24/2023
5.0.0-preview.7.20364.11 61 06/24/2023
5.0.0-preview.6.20305.6 54 10/12/2022
5.0.0-preview.5.20278.1 56 07/02/2023
5.0.0-preview.4.20251.6 62 06/30/2023
5.0.0-preview.3.20215.2 61 06/30/2023
5.0.0-preview.2.20160.3 60 11/22/2022
5.0.0-preview.1.20120.4 60 03/18/2023
3.1.32 48 06/25/2023
3.1.31 54 05/03/2023
3.1.30 58 06/29/2023
3.1.29 62 06/23/2023
3.1.28 59 12/15/2022
3.1.27 53 06/30/2023
3.1.26 57 05/08/2023
3.1.25 57 06/24/2023
3.1.24 51 10/16/2022
3.1.23 56 09/28/2022
3.1.22 64 01/18/2023
3.1.21 62 04/27/2023
3.1.20 59 05/21/2023
3.1.19 61 12/14/2022
3.1.18 59 05/12/2023
3.1.17 70 03/06/2023
3.1.16 54 05/02/2023
3.1.15 60 06/30/2023
3.1.14 57 06/27/2023
3.1.13 63 03/30/2023
3.1.12 57 03/21/2021
3.1.11 57 12/20/2021
3.1.10 53 04/04/2023
3.1.9 63 10/10/2022
3.1.8 59 01/23/2023
3.1.7 63 11/10/2020
3.1.6 62 06/11/2023
3.1.5 55 10/13/2022
3.1.4 56 05/22/2023
3.1.3 60 05/28/2022
3.1.2 56 06/28/2023
3.1.1 62 11/29/2022
3.1.0 515 05/16/2023
3.1.0-preview3.19553.2 60 06/28/2023
3.1.0-preview2.19525.4 59 11/02/2022
3.1.0-preview1.19506.1 53 06/28/2023
3.0.3 61 10/08/2022
3.0.2 61 11/06/2022
3.0.1 56 09/25/2022
3.0.0 57 04/09/2023
3.0.0-rc1.19456.10 53 06/29/2023
3.0.0-preview9.19423.4 55 07/01/2023
3.0.0-preview8.19405.4 56 06/24/2023
3.0.0-preview7.19362.4 56 09/11/2022
3.0.0-preview6.19304.6 58 06/29/2023
3.0.0-preview5.19227.9 59 11/11/2022
3.0.0-preview4.19216.2 59 10/08/2022
3.0.0-preview3.19153.1 63 06/26/2023
3.0.0-preview.19074.2 65 05/03/2022
3.0.0-preview.18572.1 55 06/29/2023
2.2.0 60 01/05/2023
2.2.0-preview3-35497 63 12/24/2022
2.2.0-preview2-35157 52 06/28/2023
2.2.0-preview1-35029 57 11/15/2022
2.1.1 2,892 11/10/2020
2.1.0 516 05/28/2022
2.1.0-rc1-final 60 09/24/2022
2.1.0-preview2-final 61 11/06/2022
2.1.0-preview1-final 60 01/14/2023
2.0.2 57 04/17/2023
2.0.1 64 12/28/2022
2.0.0 48 04/12/2023
2.0.0-preview2-final 70 03/23/2023
2.0.0-preview1-final 54 01/04/2023
1.1.2 6,244 04/14/2023
1.1.1 52 04/04/2023
1.1.0 59 06/28/2023
1.1.0-preview1-final 61 11/07/2022
1.0.2 58 06/23/2023
1.0.1 57 07/02/2023
1.0.0 61 05/07/2023
1.0.0-rc2-final 56 06/11/2023
1.0.0-rc1-final 61 11/14/2022