Microsoft.Extensions.Configuration.Abstractions 9.0.0-preview.3.24172.9

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,058
Microsoft.Extensions.Options.ConfigurationExtensions
Provides additional configuration specific functionality related to Options.
7,008
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
6,905
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
4,237
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,061
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
4,042
Microsoft.Extensions.Configuration.FileExtensions
Extension methods for configuring file-based configuration providers for Microsoft.Extensions.Configuration.
3,972
Microsoft.Extensions.Configuration.Json
JSON configuration provider implementation for Microsoft.Extensions.Configuration.
3,918
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
3,427
SkyAPM.Utilities.Configuration
SkyAPM configuration extensions.
2,872
Microsoft.Extensions.Options.ConfigurationExtensions
Provides additional configuration specific functionality related to Options.
2,753
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
2,720
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,663
Microsoft.Extensions.Hosting.Abstractions
.NET Core hosting and startup abstractions for applications.
2,446
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,395
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,260
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
2,256
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
2,020
Microsoft.Extensions.Configuration.Binder
Functionality to bind an object to data in configuration providers for Microsoft.Extensions.Configuration.
1,979
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
1,919

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