Microsoft.Extensions.Configuration.Abstractions 8.0.0-preview.4.23259.5

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.

Commonly used types:

For more information, see the documentation: Configuration in .NET.

Example

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"

Showing the top 20 packages that depend on Microsoft.Extensions.Configuration.Abstractions.

Packages Downloads
Talk.Extensions
Talk扩展
107
Talk.Extensions
Talk扩展
101
Talk.Extensions
Talk扩展
97
Talk.Extensions
Talk扩展
96
Talk.Extensions
Talk扩展
95
Talk.Extensions
Talk扩展
90
Talk.Extensions
Talk扩展
86
Microsoft.Extensions.Hosting.Abstractions
Hosting and startup abstractions for applications.
84
Talk.Extensions
Talk扩展
82
Talk.Extensions
Talk扩展
79
Talk.Extensions
Talk扩展
75
Talk.Extensions
Talk扩展
70
Talk.Extensions
Talk扩展
69
Talk.Extensions
Talk扩展
68
Talk.Extensions
Talk扩展
66
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
64
Talk.Extensions
Talk扩展
64
Microsoft.Identity.Client.Extensions.Msal
This package contains extensions to Microsoft Authentication Library for .NET (MSAL.NET)
63

https://go.microsoft.com/fwlink/?LinkID=799421

.NET Framework 4.6.2

.NET 6.0

.NET 7.0

.NET 8.0

.NET Standard 2.0

Version Downloads Last updated
8.0.0-preview.4.23259.5 93 7/7/2023
7.0.0 125 2/28/2023
7.0.0-preview.5.22301.12 70 7/3/2023
7.0.0-preview.4.22229.4 64 7/9/2023
6.0.0 68 2/28/2023
6.0.0-preview.6.21352.12 73 7/8/2023
6.0.0-preview.1.21102.12 36 7/12/2023
5.0.0 48 7/4/2023
5.0.0-rc.2.20475.5 50 7/12/2023
5.0.0-preview.4.20251.6 51 7/4/2023
3.1.32 62 7/5/2023
3.1.29 77 7/3/2023
3.1.27 63 7/3/2023
3.1.17 19 5/4/2023
3.1.15 83 7/14/2023
3.1.10 31 4/20/2023
3.1.9 54 7/12/2023
3.1.8 82 3/16/2023
3.1.4 73 7/3/2023
3.1.0 48 3/21/2023
3.0.2 98 7/6/2023
3.0.0-preview9.19423.4 44 6/28/2023
3.0.0-preview7.19362.4 86 7/7/2023
2.2.0 48 3/16/2023
2.1.0 51 7/5/2023
2.1.0-preview2-final 67 7/10/2023
2.0.2 62 7/2/2023
2.0.0 75 3/16/2023
1.1.2 54 7/8/2023
1.1.0 74 7/9/2023
1.1.0-preview1-final 96 7/8/2023
1.0.0 54 7/8/2023