Microsoft.Extensions.Configuration.Abstractions 11.0.0-preview.5.26302.115
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.IConfigurationMicrosoft.Extensions.Configuration.IConfigurationBuilderMicrosoft.Extensions.Configuration.IConfigurationProviderMicrosoft.Extensions.Configuration.IConfigurationRootMicrosoft.Extensions.Configuration.IConfigurationSection
Additional Documentation
Related Packages
- Microsoft.Extensions.Configuration
- Microsoft.Extensions.Configuration.Binder
- Microsoft.Extensions.Configuration.CommandLine
- Microsoft.Extensions.Configuration.EnvironmentVariables
- Microsoft.Extensions.Configuration.FileExtensions
- Microsoft.Extensions.Configuration.Ini
- Microsoft.Extensions.Configuration.Json
- Microsoft.Extensions.Configuration.UserSecrets
- Microsoft.Extensions.Configuration.Xml
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 |
|---|---|
|
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
|
15 |
|
Microsoft.Extensions.Hosting.Abstractions
Hosting and startup abstractions for applications.
|
15 |
|
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET Core hosting and startup abstractions for web applications.
|
12 |
|
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
|
11 |
|
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.
|
11 |
|
Microsoft.Extensions.Options.ConfigurationExtensions
Provides additional configuration specific functionality related to Options.
|
10 |
|
Microsoft.Extensions.Hosting.Abstractions
Hosting and startup abstractions for applications.
|
9 |
|
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
|
9 |
|
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
|
9 |
|
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
|
9 |
|
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.
|
9 |
|
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
|
9 |
|
Microsoft.AspNetCore.Hosting.Server.Abstractions
ASP.NET Core hosting server abstractions for web applications.
|
8 |
|
Microsoft.EntityFrameworkCore.Design
Shared design-time components for Entity Framework Core tools.
|
8 |
|
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
|
8 |
|
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
|
8 |
|
Microsoft.Extensions.Hosting.Abstractions
Hosting and startup abstractions for applications.
|
8 |
|
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.
|
8 |
.NET 10.0
- Microsoft.Extensions.Primitives (>= 11.0.0-preview.5.26302.115)
.NET 11.0
- No dependencies.
.NET Framework 4.6.2
- Microsoft.Extensions.Primitives (>= 11.0.0-preview.5.26302.115)
- System.ValueTuple (>= 4.6.2)
.NET Standard 2.0
- Microsoft.Extensions.Primitives (>= 11.0.0-preview.5.26302.115)
| Version | Downloads | Last updated |
|---|---|---|
| 11.0.0-preview.5.26302.115 | 2 | 6/20/2026 |
| 10.0.12 | 0 | 9/13/2026 |
| 10.0.8 | 2 | 5/26/2026 |
| 10.0.7 | 9 | 5/9/2026 |
| 10.0.5 | 4 | 5/28/2026 |
| 10.0.3 | 2 | 5/9/2026 |
| 10.0.2 | 4 | 2/8/2026 |
| 10.0.1 | 2 | 5/28/2026 |
| 10.0.0 | 2 | 5/9/2026 |
| 9.0.16 | 5 | 7/19/2026 |
| 9.0.15 | 4 | 5/9/2026 |
| 9.0.13 | 5 | 6/1/2026 |
| 9.0.9 | 8 | 9/24/2025 |
| 9.0.6 | 11 | 6/23/2025 |
| 9.0.5 | 9 | 6/26/2025 |
| 9.0.3 | 4 | 10/22/2025 |
| 9.0.0 | 7 | 5/9/2026 |
| 8.0.0 | 15 | 6/26/2025 |
| 7.0.0 | 10 | 6/24/2025 |
| 6.0.1 | 2 | 5/31/2026 |
| 6.0.0 | 8 | 8/16/2025 |
| 5.0.0 | 2 | 4/18/2026 |
| 3.1.28 | 3 | 6/27/2025 |
| 3.1.15 | 2 | 2/22/2026 |
| 3.1.8 | 4 | 4/18/2026 |
| 3.1.1 | 2 | 2/22/2026 |
| 3.1.0 | 3 | 7/27/2025 |
| 3.1.0-preview1.19506.1 | 2 | 4/17/2026 |
| 3.0.0 | 2 | 2/6/2026 |
| 2.2.0 | 5 | 6/23/2025 |
| 2.1.1 | 4 | 6/23/2025 |
| 2.1.0 | 2 | 6/23/2025 |
| 2.0.0 | 2 | 12/22/2025 |
| 1.0.2 | 9 | 6/23/2025 |