Microsoft.Extensions.Configuration.Abstractions 11.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 and ConfigurationIgnore attributes:

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

    [ConfigurationIgnore]
    public string IgnoredProperty { get; set; } = "default";
}

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"},
    {"ignored_property", "this value is ignored"},
};

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

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

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.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
903
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider. This package was built from the source code at https://github.com/aspnet/Extensions/tree/9bc79b2f25a3724376d7af19617c33749a30ea3a
900
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
878
NLog.Extensions.Logging
NLog LoggerProvider for Microsoft.Extensions.Logging for logging in .NET Standard libraries and .NET Core applications. For ASP.NET Core, use NLog.Web.AspNetCore: https://www.nuget.org/packages/NLog.Web.AspNetCore
874
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
816
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
688
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
660
Microsoft.Extensions.Logging.Configuration
Configuration support for Microsoft.Extensions.Logging. When using NuGet 3.x this package requires at least version 3.4.
607
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider. When using NuGet 3.x this package requires at least version 3.4.
600
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
596
Microsoft.Extensions.Configuration.Binder
Functionality to bind an object to data in configuration providers for Microsoft.Extensions.Configuration. When using NuGet 3.x this package requires at least version 3.4.
596
Microsoft.Extensions.Options.ConfigurationExtensions
Provides additional configuration specific functionality related to Options. When using NuGet 3.x this package requires at least version 3.4.
592
Microsoft.Extensions.Configuration.EnvironmentVariables
Environment variables configuration provider implementation for Microsoft.Extensions.Configuration. When using NuGet 3.x this package requires at least version 3.4.
585
Microsoft.Extensions.Configuration.FileExtensions
Extension methods for configuring file-based configuration providers for Microsoft.Extensions.Configuration. When using NuGet 3.x this package requires at least version 3.4.
581
Microsoft.Extensions.Hosting.Abstractions
Hosting and startup abstractions for applications. When using NuGet 3.x this package requires at least version 3.4.
575
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
528
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
461
AWSSDK.Extensions.NETCore.Setup
Extensions for the AWS SDK for .NET to integrate with .NET Core configuration and dependency injection frameworks.
415
Microsoft.Extensions.Logging.Console
Console logger provider implementation for Microsoft.Extensions.Logging. When using NuGet 3.x this package requires at least version 3.4.
387
Microsoft.Extensions.Configuration.CommandLine
Command line configuration provider implementation for Microsoft.Extensions.Configuration. When using NuGet 3.x this package requires at least version 3.4.
375

.NET 10.0

.NET 11.0

  • No dependencies.

.NET Framework 4.6.2

.NET Standard 2.0

Version Downloads Last updated
11.0.0 8 11/14/2026
11.0.0-rc.3.26522.148 8 11/05/2026
11.0.0-rc.2.26504.105 9 10/14/2026
11.0.0-rc.1.26425.128 17 09/11/2026
11.0.0-preview.7.26381.103 16 08/12/2026
11.0.0-preview.6.26359.118 15 07/16/2026
11.0.0-preview.5.26302.115 13 06/22/2026
11.0.0-preview.4.26230.115 14 07/10/2026
11.0.0-preview.3.26207.106 13 06/22/2026
11.0.0-preview.2.26159.112 15 06/23/2026
11.0.0-preview.1.26104.118 14 06/23/2026
10.0.15 6 11/13/2026
10.0.14 8 11/08/2026
10.0.13 8 10/14/2026
10.0.12 17 09/12/2026
10.0.11 13 08/12/2026
10.0.10 15 07/20/2026
10.0.9 14 06/22/2026
10.0.8 9 06/22/2026
10.0.7 18 06/22/2026
10.0.6 14 06/22/2026
10.0.5 20 06/22/2026
10.0.4 17 06/22/2026
10.0.3 22 06/22/2026
10.0.2 14 06/22/2026
10.0.1 20 06/22/2026
10.0.0 13 06/22/2026
10.0.0-rc.2.25502.107 14 07/16/2026
10.0.0-rc.1.25451.107 11 08/04/2026
10.0.0-preview.7.25380.108 13 06/24/2026
10.0.0-preview.6.25358.103 10 06/24/2026
10.0.0-preview.5.25277.114 12 06/24/2026
10.0.0-preview.4.25258.110 21 06/22/2026
10.0.0-preview.3.25171.5 15 07/16/2026
10.0.0-preview.2.25163.2 11 06/24/2026
10.0.0-preview.1.25080.5 9 06/23/2026
9.0.23 4 11/13/2026
9.0.22 10 11/08/2026
9.0.21 9 10/14/2026
9.0.20 10 09/29/2026
9.0.19 14 08/12/2026
9.0.18 10 07/18/2026
9.0.17 15 06/22/2026
9.0.16 15 06/22/2026
9.0.15 12 06/22/2026
9.0.14 16 06/22/2026
9.0.13 20 06/22/2026
9.0.12 18 06/22/2026
9.0.11 18 06/22/2026
9.0.10 21 06/22/2026
9.0.9 12 07/08/2026
9.0.8 22 09/11/2025
9.0.7 13 08/18/2025
9.0.6 13 07/16/2026
9.0.5 14 06/16/2025
9.0.4 13 07/16/2026
9.0.3 0 03/11/2025
9.0.2 19 06/30/2026
9.0.1 14 07/16/2026
9.0.0 67 12/12/2024
9.0.0-rc.2.24473.5 15 06/23/2026
9.0.0-rc.1.24431.7 13 09/30/2024
9.0.0-preview.7.24405.7 13 06/24/2026
9.0.0-preview.6.24327.7 14 07/09/2026
9.0.0-preview.5.24306.7 14 06/26/2026
9.0.0-preview.4.24266.19 15 06/23/2026
9.0.0-preview.3.24172.9 11 09/02/2026
9.0.0-preview.2.24128.5 11 09/04/2026
9.0.0-preview.1.24080.9 14 06/24/2026
8.0.0 71 12/15/2023
8.0.0-rc.2.23479.6 19 11/11/2024
8.0.0-rc.1.23419.4 16 01/19/2024
8.0.0-preview.7.23375.6 20 12/25/2023
8.0.0-preview.6.23329.7 14 05/04/2024
8.0.0-preview.5.23280.8 20 11/22/2024
8.0.0-preview.4.23259.5 15 04/25/2024
8.0.0-preview.3.23174.8 13 12/28/2023
8.0.0-preview.2.23128.3 9 05/28/2025
8.0.0-preview.1.23110.8 11 01/12/2025
7.0.0 43 01/05/2023
7.0.0-rc.2.22472.3 15 09/22/2024
7.0.0-rc.1.22426.10 18 01/16/2024
7.0.0-preview.7.22375.6 13 06/07/2025
7.0.0-preview.6.22324.4 13 03/19/2024
7.0.0-preview.5.22301.12 13 04/10/2025
7.0.0-preview.4.22229.4 17 09/14/2024
7.0.0-preview.3.22175.4 11 07/16/2026
7.0.0-preview.2.22152.2 13 09/21/2024
7.0.0-preview.1.22076.8 12 01/30/2024
6.0.2-mauipre.1.22054.8 12 10/22/2025
6.0.1 11 07/16/2026
6.0.0 47 03/02/2022
6.0.0-rc.2.21480.5 16 05/29/2025
6.0.0-rc.1.21451.13 15 06/23/2025
6.0.0-preview.7.21377.19 11 06/20/2024
6.0.0-preview.6.21352.12 13 11/13/2025
6.0.0-preview.5.21301.5 14 07/16/2026
6.0.0-preview.4.21253.7 13 05/06/2025
6.0.0-preview.3.21201.4 7 06/30/2024
6.0.0-preview.2.21154.6 11 10/04/2024
6.0.0-preview.1.21102.12 13 06/24/2026
5.0.0 910 02/16/2021
5.0.0-rc.2.20475.5 19 12/25/2023
5.0.0-rc.1.20451.14 16 09/29/2024
5.0.0-preview.8.20407.11 14 03/23/2025
5.0.0-preview.7.20364.11 16 12/21/2023
5.0.0-preview.6.20305.6 12 09/11/2025
5.0.0-preview.5.20278.1 12 09/02/2026
5.0.0-preview.4.20251.6 15 01/13/2024
5.0.0-preview.3.20215.2 11 07/08/2026
5.0.0-preview.2.20160.3 10 06/23/2024
5.0.0-preview.1.20120.4 16 05/05/2024
3.1.32 16 07/10/2024
3.1.31 15 12/26/2023
3.1.30 19 12/28/2023
3.1.29 16 08/20/2024
3.1.28 17 10/09/2024
3.1.27 15 12/18/2024
3.1.26 10 06/22/2026
3.1.25 16 09/28/2024
3.1.24 18 03/12/2025
3.1.23 11 01/09/2024
3.1.22 20 01/04/2024
3.1.21 21 02/21/2022
3.1.20 17 06/18/2024
3.1.19 17 12/25/2023
3.1.18 22 02/28/2024
3.1.17 23 01/17/2024
3.1.16 21 12/16/2023
3.1.15 22 01/12/2024
3.1.14 21 09/27/2024
3.1.13 14 04/02/2025
3.1.12 22 01/12/2024
3.1.11 16 05/29/2024
3.1.10 19 02/17/2024
3.1.9 20 04/28/2021
3.1.8 13 05/25/2022
3.1.7 10 03/19/2024
3.1.6 14 07/08/2026
3.1.5 21 09/30/2021
3.1.4 11 03/21/2024
3.1.3 10 03/06/2021
3.1.2 21 03/08/2021
3.1.1 13 02/21/2025
3.1.0 424 02/16/2021
3.1.0-preview3.19553.2 16 03/29/2024
3.1.0-preview2.19525.4 18 06/23/2026
3.1.0-preview1.19506.1 12 04/01/2025
3.0.3 14 12/26/2024
3.0.2 16 12/12/2024
3.0.1 12 01/30/2024
3.0.0 12 01/30/2024
3.0.0-rc1.19456.10 18 10/05/2024
3.0.0-preview9.19423.4 15 05/03/2025
3.0.0-preview8.19405.4 16 03/16/2025
3.0.0-preview7.19362.4 19 12/19/2024
3.0.0-preview6.19304.6 18 05/06/2024
3.0.0-preview5.19227.9 14 06/23/2026
3.0.0-preview4.19216.2 15 01/05/2024
3.0.0-preview3.19153.1 16 03/24/2024
3.0.0-preview.19074.2 11 03/14/2024
3.0.0-preview.18572.1 16 07/19/2026
2.2.0 866 06/07/2021
2.2.0-preview3-35497 16 06/01/2024
2.2.0-preview2-35157 21 01/22/2024
2.2.0-preview1-35029 16 03/31/2024
2.1.1 28 09/03/2021
2.1.0 380 03/08/2021
2.1.0-rc1-final 18 04/06/2024
2.1.0-preview2-final 14 06/24/2024
2.1.0-preview1-final 17 01/24/2024
2.0.2 692 08/10/2021
2.0.1 17 04/16/2025
2.0.0 497 03/08/2021
2.0.0-preview2-final 10 07/08/2026
2.0.0-preview1-final 14 03/13/2024
1.1.2 23 03/02/2022
1.1.1 13 03/16/2025
1.1.0 11 04/07/2024
1.1.0-preview1-final 12 02/23/2024
1.0.2 13 05/22/2024
1.0.1 23 12/21/2023
1.0.0 64 11/18/2021
1.0.0-rc2-final 17 01/16/2025
1.0.0-rc1-final 23 12/21/2023