Microsoft.Extensions.Configuration.Abstractions 8.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.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 |
|---|---|
|
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
|
75 |
|
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
|
74 |
|
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
|
65 |
|
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
|
64 |
|
Microsoft.Extensions.Logging.Log4Net.AspNetCore
Allows to configure Log4net as Microsoft Extensions Logging handler on any ASP.NET Core application.
Original code proposal by @anuraj --> https://dotnetthoughts.net/how-to-use-log4net-with-aspnetcore-for-logging/
|
48 |
|
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
|
46 |
|
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.
|
44 |
|
Nager.PublicSuffix
Domain parsing and validation (TLD, domain, subdomain) provide easy and fast access to the Public Suffix List
|
29 |
|
Microsoft.Extensions.Options.ConfigurationExtensions
Provides additional configuration specific functionality related to Options.
|
19 |
|
Microsoft.Extensions.Http
The HttpClient factory is a pattern for configuring and retrieving named HttpClients in a composable way. The HttpClient factory provides extensibility to plug in DelegatingHandlers that address cross-cutting concerns such as service location, load balancing, and reliability. The default HttpClient factory provides built-in diagnostics and logging and manages the lifetimes of connections in a performant way.
Commonly Used Types:
System.Net.Http.IHttpClientFactory
|
19 |
|
Dapr.Client
This package contains the reference assemblies for developing services using Dapr.
|
17 |
|
Dapr.AspNetCore
This package contains the reference assemblies for developing services using Dapr and AspNetCore.
|
16 |
|
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
|
13 |
|
Dapr.Common
Package Description
|
13 |
|
Dapr.Common
Package Description
|
12 |
|
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
9 |
|
Dapr.Actors
This package contains the reference assemblies for developing Actor services using Dapr.
|
8 |
|
Microsoft.Extensions.Azure
Azure Client SDK integration with Microsoft.Extensions libraries
|
8 |
|
Serilog.Settings.Configuration
Microsoft.Extensions.Configuration (appsettings.json) support for Serilog.
|
8 |
.NET Framework 4.6.2
- Microsoft.Extensions.Primitives (>= 8.0.0)
- System.ValueTuple (>= 4.5.0)
.NET 6.0
- Microsoft.Extensions.Primitives (>= 8.0.0)
.NET 7.0
- Microsoft.Extensions.Primitives (>= 8.0.0)
.NET 8.0
- Microsoft.Extensions.Primitives (>= 8.0.0)
.NET Standard 2.0
- Microsoft.Extensions.Primitives (>= 8.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 9.0.2 | 30 | 07/07/2025 |
| 8.0.0 | 67 | 07/07/2025 |
| 6.0.2-mauipre.1.22054.8 | 5 | 07/13/2025 |
| 6.0.0 | 65 | 07/07/2025 |
| 6.0.0-preview.5.21301.5 | 5 | 07/09/2025 |
| 3.1.23 | 5 | 07/10/2025 |
| 3.1.11 | 5 | 07/10/2025 |
| 3.1.8 | 4 | 07/12/2025 |
| 3.0.3 | 4 | 07/10/2025 |
| 3.0.0-preview9.19423.4 | 6 | 07/11/2025 |
| 2.2.0-preview1-35029 | 6 | 07/11/2025 |