Microsoft.Extensions.Configuration.Abstractions 9.0.0

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,168
Microsoft.Extensions.Options.ConfigurationExtensions
Provides additional configuration specific functionality related to Options.
7,125
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
7,007
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
4,305
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,163
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
4,059
Microsoft.Extensions.Configuration.FileExtensions
Extension methods for configuring file-based configuration providers for Microsoft.Extensions.Configuration.
4,031
Microsoft.Extensions.Configuration.Json
JSON configuration provider implementation for Microsoft.Extensions.Configuration.
3,980
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
3,448
SkyAPM.Utilities.Configuration
SkyAPM configuration extensions.
2,878
Microsoft.Extensions.Options.ConfigurationExtensions
Provides additional configuration specific functionality related to Options.
2,773
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
2,737
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,697
Microsoft.Extensions.Hosting.Abstractions
.NET Core hosting and startup abstractions for applications.
2,452
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,414
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,263
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
2,260
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
2,110
Microsoft.Extensions.Configuration.Binder
Functionality to bind an object to data in configuration providers for Microsoft.Extensions.Configuration.
2,080
Microsoft.Extensions.Hosting.Abstractions
Hosting and startup abstractions for applications.
1,940

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