Microsoft.Extensions.Configuration.Abstractions 9.0.1

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.Logging.Console
Console logger provider implementation for Microsoft.Extensions.Logging.
7,256
Microsoft.Extensions.Options.ConfigurationExtensions
Provides additional configuration specific functionality related to Options.
7,213
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
7,093
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
4,340
Microsoft.AspNetCore.Hosting.Server.Abstractions
ASP.NET Core hosting server abstractions for web applications. This package was built from the source code at https://github.com/aspnet/Hosting/tree/0724e6cde1149ee1a19bfec9c13a2c9327b71213
4,187
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
4,084
Microsoft.Extensions.Configuration.FileExtensions
Extension methods for configuring file-based configuration providers for Microsoft.Extensions.Configuration.
4,059
Microsoft.Extensions.Configuration.Json
JSON configuration provider implementation for Microsoft.Extensions.Configuration.
4,004
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
3,477
SkyAPM.Utilities.Configuration
SkyAPM configuration extensions.
2,880
Microsoft.Extensions.Options.ConfigurationExtensions
Provides additional configuration specific functionality related to Options.
2,799
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
2,762
Microsoft.Extensions.Hosting.Abstractions
.NET Core hosting and startup abstractions for applications. This package was built from the source code at https://github.com/aspnet/Hosting/tree/0724e6cde1149ee1a19bfec9c13a2c9327b71213
2,723
Microsoft.Extensions.Hosting.Abstractions
.NET Core hosting and startup abstractions for applications.
2,457
Microsoft.AspNetCore.Cors
CORS middleware and policy for ASP.NET Core to enable cross-origin resource sharing. Commonly used types: Microsoft.AspNetCore.Cors.DisableCorsAttribute Microsoft.AspNetCore.Cors.EnableCorsAttribute This package was built from the source code at https://github.com/aspnet/CORS/tree/f05b0e792d2361be214947798857ef3eac77825d
2,442
NLog.Extensions.Logging
NLog LoggerProvider for Microsoft.Extensions.Logging for logging in .NET Standard libraries and .NET Core applications. For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore
2,269
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
2,266
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
2,142
Microsoft.Extensions.Configuration.Binder
Functionality to bind an object to data in configuration providers for Microsoft.Extensions.Configuration.
2,118
Microsoft.Extensions.Hosting.Abstractions
Hosting and startup abstractions for applications.
1,968

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
9.0.1 7 01/24/2025
9.0.0 11 11/13/2024
9.0.0-rc.2.24473.5 15 10/14/2024
9.0.0-rc.1.24431.7 11 09/12/2024
9.0.0-preview.7.24405.7 18 08/14/2024
9.0.0-preview.6.24327.7 14 07/12/2024
9.0.0-preview.5.24306.7 12 07/06/2024
9.0.0-preview.4.24266.19 18 05/24/2024
9.0.0-preview.3.24172.9 22 04/14/2024
9.0.0-preview.2.24128.5 20 03/17/2024
9.0.0-preview.1.24080.9 17 02/25/2024
8.0.0 1,188 11/24/2023
8.0.0-rc.2.23479.6 20 11/03/2023
8.0.0-rc.1.23419.4 22 09/26/2023
8.0.0-preview.7.23375.6 23 08/14/2023
8.0.0-preview.6.23329.7 20 10/02/2023
8.0.0-preview.5.23280.8 21 09/19/2023
8.0.0-preview.4.23259.5 22 06/20/2023
8.0.0-preview.3.23174.8 19 06/08/2023
8.0.0-preview.2.23128.3 22 06/08/2023
8.0.0-preview.1.23110.8 21 09/19/2023
7.0.0 40 06/25/2023
7.0.0-rc.2.22472.3 16 10/05/2023
7.0.0-rc.1.22426.10 21 06/07/2023
7.0.0-preview.7.22375.6 22 07/27/2023
7.0.0-preview.6.22324.4 20 08/28/2023
7.0.0-preview.5.22301.12 17 08/16/2023
7.0.0-preview.4.22229.4 21 06/21/2023
7.0.0-preview.3.22175.4 22 06/20/2023
7.0.0-preview.2.22152.2 16 09/28/2023
7.0.0-preview.1.22076.8 20 07/26/2023
6.0.2-mauipre.1.22102.15 20 09/30/2023
6.0.2-mauipre.1.22054.8 20 07/02/2023
6.0.1 10 11/13/2024
6.0.0 5,916 11/12/2021
6.0.0-rc.2.21480.5 20 11/02/2023
6.0.0-rc.1.21451.13 19 10/26/2023
6.0.0-preview.7.21377.19 23 10/08/2023
6.0.0-preview.6.21352.12 19 12/03/2023
6.0.0-preview.5.21301.5 18 07/04/2023
6.0.0-preview.4.21253.7 20 07/26/2023
6.0.0-preview.3.21201.4 26 06/08/2023
6.0.0-preview.2.21154.6 20 08/24/2023
6.0.0-preview.1.21102.12 20 09/18/2023
5.0.0 5,810 12/16/2020
5.0.0-rc.2.20475.5 18 10/09/2023
5.0.0-rc.1.20451.14 19 06/08/2023
5.0.0-preview.8.20407.11 18 06/20/2023
5.0.0-preview.7.20364.11 19 10/16/2023
5.0.0-preview.6.20305.6 21 08/07/2023
5.0.0-preview.5.20278.1 19 09/08/2023
5.0.0-preview.4.20251.6 19 09/29/2023
5.0.0-preview.3.20215.2 18 09/29/2023
5.0.0-preview.2.20160.3 21 07/06/2023
5.0.0-preview.1.20120.4 25 06/07/2022
3.1.32 19 12/24/2023
3.1.31 25 10/09/2023
3.1.30 17 12/24/2023
3.1.29 20 06/12/2023
3.1.28 18 09/29/2023
3.1.27 20 08/18/2023
3.1.26 20 08/19/2023
3.1.25 21 10/01/2023
3.1.24 20 06/13/2023
3.1.23 22 10/09/2023
3.1.22 17 09/18/2023
3.1.21 19 10/02/2023
3.1.20 19 09/30/2023
3.1.19 20 10/09/2023
3.1.18 18 10/04/2023
3.1.17 19 02/22/2022
3.1.16 23 10/26/2023
3.1.15 17 10/02/2023
3.1.14 13 09/28/2023
3.1.13 23 09/29/2023
3.1.12 21 09/29/2023
3.1.11 22 12/25/2023
3.1.10 24 01/11/2021
3.1.9 17 10/01/2023
3.1.8 2,433 04/16/2021
3.1.7 17 09/30/2023
3.1.6 25 08/06/2021
3.1.5 20 10/08/2023
3.1.4 16 11/26/2023
3.1.3 7,111 12/16/2020
3.1.2 19 12/24/2023
3.1.1 15 12/31/2023
3.1.0 4,048 01/26/2021
3.1.0-preview3.19553.2 20 08/27/2023
3.1.0-preview2.19525.4 20 08/31/2023
3.1.0-preview1.19506.1 17 09/28/2023
3.0.3 2,242 12/16/2020
3.0.2 22 08/21/2023
3.0.1 20 10/08/2023
3.0.0 1,199 12/16/2020
3.0.0-rc1.19456.10 16 09/30/2023
3.0.0-preview9.19423.4 20 11/05/2023
3.0.0-preview8.19405.4 15 10/08/2023
3.0.0-preview7.19362.4 17 10/06/2023
3.0.0-preview6.19304.6 16 11/28/2023
3.0.0-preview5.19227.9 19 10/12/2023
3.0.0-preview4.19216.2 19 08/18/2023
3.0.0-preview3.19153.1 17 10/15/2023
3.0.0-preview.19074.2 16 10/02/2023
3.0.0-preview.18572.1 18 09/29/2023
2.2.0 4,069 12/16/2020
2.2.0-preview3-35497 21 09/29/2023
2.2.0-preview2-35157 16 09/30/2023
2.2.0-preview1-35029 17 10/11/2023
2.1.1 28 01/22/2021
2.1.0 26 01/18/2021
2.1.0-rc1-final 19 10/22/2023
2.1.0-preview2-final 22 10/22/2023
2.1.0-preview1-final 19 09/29/2023
2.0.2 25 01/28/2021
2.0.1 15 11/06/2023
2.0.0 2,740 01/22/2021
2.0.0-preview2-final 18 09/29/2023
2.0.0-preview1-final 16 09/29/2023
1.1.2 18 10/17/2023
1.1.1 20 09/16/2023
1.1.0 18 11/01/2023
1.1.0-preview1-final 20 10/22/2023
1.0.2 19 12/30/2023
1.0.1 26 09/02/2023
1.0.0 21 10/15/2023
1.0.0-rc2-final 18 09/30/2023
1.0.0-rc1-final 17 10/09/2023