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:
- Microsoft.Extensions.Configuration.IConfiguration
- Microsoft.Extensions.Configuration.IConfigurationBuilder
- Microsoft.Extensions.Configuration.IConfigurationProvider
- Microsoft.Extensions.Configuration.IConfigurationRoot
- Microsoft.Extensions.Configuration.IConfigurationSection
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扩展
|
128 |
|
Talk.Extensions
Talk扩展
|
125 |
|
Talk.Extensions
Talk扩展
|
121 |
|
Talk.Extensions
Talk扩展
|
119 |
|
Talk.Extensions
Talk扩展
|
117 |
|
Talk.Extensions
Talk扩展
|
111 |
|
Microsoft.Extensions.Hosting.Abstractions
Hosting and startup abstractions for applications.
|
108 |
|
Talk.Extensions
Talk扩展
|
107 |
|
Talk.Extensions
Talk扩展
|
105 |
|
Talk.Extensions
Talk扩展
|
101 |
|
Microsoft.Extensions.Options.ConfigurationExtensions
Provides additional configuration specific functionality related to Options.
|
91 |
|
Talk.Extensions
Talk扩展
|
89 |
|
Talk.Extensions
Talk扩展
|
87 |
|
Talk.Extensions
Talk扩展
|
85 |
|
Microsoft.Extensions.Configuration.EnvironmentVariables
Environment variables configuration provider implementation for Microsoft.Extensions.Configuration. This package enables you to read configuration parameters from environment variables. You can use EnvironmentVariablesExtensions.AddEnvironmentVariables extension method on IConfigurationBuilder to add the environment variables configuration provider to the configuration builder.
|
83 |
|
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
|
81 |
|
Microsoft.Extensions.Configuration.FileExtensions
Extension methods for configuring file-based configuration providers for Microsoft.Extensions.Configuration.
|
81 |
|
Talk.Extensions
Talk扩展
|
80 |
|
Microsoft.Identity.Client.Extensions.Msal
This package contains extensions to Microsoft Authentication Library for .NET (MSAL.NET)
|
80 |
https://go.microsoft.com/fwlink/?LinkID=799421
.NET Framework 4.6.2
- Microsoft.Extensions.Primitives (>= 8.0.0-preview.4.23259.5)
- System.ValueTuple (>= 4.5.0)
.NET 6.0
- Microsoft.Extensions.Primitives (>= 8.0.0-preview.4.23259.5)
.NET 7.0
- Microsoft.Extensions.Primitives (>= 8.0.0-preview.4.23259.5)
.NET 8.0
- Microsoft.Extensions.Primitives (>= 8.0.0-preview.4.23259.5)
.NET Standard 2.0
- Microsoft.Extensions.Primitives (>= 8.0.0-preview.4.23259.5)
| Version | Downloads | Last updated |
|---|---|---|
| 8.0.0-preview.4.23259.5 | 128 | 7/7/2023 |
| 7.0.0 | 155 | 2/28/2023 |
| 7.0.0-preview.5.22301.12 | 96 | 7/3/2023 |
| 7.0.0-preview.4.22229.4 | 78 | 7/9/2023 |
| 6.0.0 | 88 | 2/28/2023 |
| 6.0.0-preview.6.21352.12 | 88 | 7/8/2023 |
| 6.0.0-preview.1.21102.12 | 49 | 7/12/2023 |
| 5.0.0 | 69 | 7/4/2023 |
| 5.0.0-rc.2.20475.5 | 74 | 7/12/2023 |
| 5.0.0-preview.4.20251.6 | 78 | 7/4/2023 |
| 3.1.32 | 79 | 7/5/2023 |
| 3.1.29 | 112 | 7/3/2023 |
| 3.1.27 | 91 | 7/3/2023 |
| 3.1.17 | 27 | 5/4/2023 |
| 3.1.15 | 100 | 7/14/2023 |
| 3.1.10 | 39 | 4/20/2023 |
| 3.1.9 | 70 | 7/12/2023 |
| 3.1.8 | 103 | 3/16/2023 |
| 3.1.4 | 95 | 7/3/2023 |
| 3.1.0 | 66 | 3/21/2023 |
| 3.0.2 | 129 | 7/6/2023 |
| 3.0.0-preview9.19423.4 | 62 | 6/28/2023 |
| 3.0.0-preview7.19362.4 | 115 | 7/7/2023 |
| 2.2.0 | 67 | 3/16/2023 |
| 2.1.0 | 66 | 7/5/2023 |
| 2.1.0-preview2-final | 95 | 7/10/2023 |
| 2.0.2 | 88 | 7/2/2023 |
| 2.0.0 | 86 | 3/16/2023 |
| 1.1.2 | 68 | 7/8/2023 |
| 1.1.0 | 91 | 7/9/2023 |
| 1.1.0-preview1-final | 119 | 7/8/2023 |
| 1.0.0 | 72 | 7/8/2023 |