Microsoft.Extensions.Configuration.Binder
8.0.0-rc.1.23419.4
Prefix Reserved
See the version list below for details.
dotnet add package Microsoft.Extensions.Configuration.Binder --version 8.0.0-rc.1.23419.4
NuGet\Install-Package Microsoft.Extensions.Configuration.Binder -Version 8.0.0-rc.1.23419.4
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.0-rc.1.23419.4" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.0-rc.1.23419.4" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" />
paket add Microsoft.Extensions.Configuration.Binder --version 8.0.0-rc.1.23419.4
#r "nuget: Microsoft.Extensions.Configuration.Binder, 8.0.0-rc.1.23419.4"
#:package Microsoft.Extensions.Configuration.Binder@8.0.0-rc.1.23419.4
#addin nuget:?package=Microsoft.Extensions.Configuration.Binder&version=8.0.0-rc.1.23419.4&prerelease
#tool nuget:?package=Microsoft.Extensions.Configuration.Binder&version=8.0.0-rc.1.23419.4&prerelease
About
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.
For more information, see the documentation: Configuration in .NET.
Example
The following example shows how to bind a JSON configuration section to .NET objects.
using System;
using Microsoft.Extensions.Configuration;
class Settings
{
public string Server { get; set; }
public string Database { get; set; }
public Endpoint[] Endpoints { get; set; }
}
class Endpoint
{
public string IPAddress { get; set; }
public int Port { get; set; }
}
class Program
{
static void Main()
{
// Build a configuration object from JSON file
IConfiguration config = new ConfigurationBuilder()
.AddJsonFile("appsettings.json")
.Build();
// Bind a configuration section to an instance of Settings class
Settings settings = config.GetSection("Settings").Get<Settings>();
// Read simple values
Console.WriteLine($"Server: {settings.Server}");
Console.WriteLine($"Database: {settings.Database}");
// Read nested objects
Console.WriteLine("Endpoints: ");
foreach (Endpoint endpoint in settings.Endpoints)
{
Console.WriteLine($"{endpoint.IPAddress}:{endpoint.Port}");
}
}
}
To run this example, include an appsettings.json
file with the following content in your project:
{
"Settings": {
"Server": "example.com",
"Database": "Northwind",
"Endpoints": [
{
"IPAddress": "192.168.0.1",
"Port": "80"
},
{
"IPAddress": "192.168.10.1",
"Port": "8080"
}
]
}
}
You can include a configuration file using a code like this in your .csproj
file:
<ItemGroup>
<Content Include="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0-rc.1.23419.4)
-
.NETStandard 2.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0-rc.1.23419.4)
-
net6.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0-rc.1.23419.4)
-
net7.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0-rc.1.23419.4)
-
net8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0-rc.1.23419.4)
NuGet packages (4.8K)
Showing the top 5 NuGet packages that depend on Microsoft.Extensions.Configuration.Binder:
Package | Downloads |
---|---|
Microsoft.Extensions.Options.ConfigurationExtensions
Provides additional configuration specific functionality related to Options. |
|
Microsoft.Extensions.Logging.Configuration
Configuration support for Microsoft.Extensions.Logging. |
|
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications. |
|
Serilog.Settings.Configuration
Microsoft.Extensions.Configuration (appsettings.json) support for Serilog. |
|
Microsoft.AspNetCore.Server.Kestrel.Core
Core components of ASP.NET Core Kestrel cross-platform web server. |
GitHub repositories (402)
Showing the top 20 popular GitHub repositories that depend on Microsoft.Extensions.Configuration.Binder:
Repository | Stars |
---|---|
jellyfin/jellyfin
The Free Software Media System - Server Backend & API
|
|
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
|
|
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
|
|
microsoft/garnet
Garnet is a remote cache-store from Microsoft Research that offers strong performance (throughput and latency), scalability, storage, recovery, cluster sharding, key migration, and replication features. Garnet can work with existing Redis clients.
|
|
chocolatey/choco
Chocolatey - the package manager for Windows
|
|
d2phap/ImageGlass
🏞 A lightweight, versatile image viewer
|
|
dotnet/orleans
Cloud Native application framework for .NET
|
|
JeffreySu/WeiXinMPSDK
微信全平台 .NET SDK, Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 8.0。已支持微信公众号、小程序、小游戏、微信支付、企业微信/企业号、开放平台、JSSDK、微信周边等全平台。 WeChat SDK for C#.
|
|
ThreeMammals/Ocelot
.NET API Gateway
|
|
microsoft/ailab
Experience, Learn and Code the latest breakthrough innovations with Microsoft AI
|
|
NancyFx/Nancy
Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono
|
|
Azure/azure-sdk-for-net
This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
|
|
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
|
|
dotnet/aspire
Tools, templates, and packages to accelerate building observable, production-ready apps
|
|
tModLoader/tModLoader
A mod to make and play Terraria mods. Supports Terraria 1.4 (and earlier) installations
|
|
dotnetcore/Util
Util是一个.Net平台下的应用框架,旨在提升中小团队的开发能力,由工具类、分层架构基类、Ui组件,配套代码生成模板,权限等组成。
|
|
jamesmh/coravel
Near-zero config .NET library that makes advanced application features like Task Scheduling, Caching, Queuing, Event Broadcasting, and more a breeze!
|
|
ivanpaulovich/clean-architecture-manga
:cyclone: Clean Architecture with .NET6, C#10 and React+Redux. Use cases as central organizing structure, completely testable, decoupled from frameworks
|
|
kerryjiang/SuperSocket
SuperSocket is a high-performance, extensible socket server application framework for .NET. It provides a robust architecture for building custom network communication applications with support for multiple protocols including TCP, UDP, and WebSocket.
|
|
Scighost/Starward
Game Launcher for miHoYo - 米家游戏启动器
|
Version | Downloads | Last Updated | |
---|---|---|---|
10.0.0-preview.6.25358.103 | 0 | 7/15/2025 | |
10.0.0-preview.5.25277.114 | 35,068 | 6/6/2025 | |
10.0.0-preview.4.25258.110 | 49,788 | 5/12/2025 | |
10.0.0-preview.3.25171.5 | 54,424 | 4/10/2025 | |
10.0.0-preview.2.25163.2 | 40,674 | 3/18/2025 | |
10.0.0-preview.1.25080.5 | 74,985 | 2/25/2025 | |
9.0.7 | 443,241 | 7/8/2025 | |
9.0.6 | 3,651,145 | 6/10/2025 | |
9.0.5 | 6,113,326 | 5/13/2025 | |
9.0.4 | 10,006,185 | 4/8/2025 | |
9.0.3 | 9,363,308 | 3/11/2025 | |
9.0.2 | 11,079,743 | 2/11/2025 | |
9.0.1 | 11,580,979 | 1/14/2025 | |
9.0.0 | 54,957,224 | 11/12/2024 | |
9.0.0-rc.2.24473.5 | 503,519 | 10/8/2024 | |
9.0.0-rc.1.24431.7 | 357,236 | 9/10/2024 | |
9.0.0-preview.7.24405.7 | 128,137 | 8/13/2024 | |
9.0.0-preview.6.24327.7 | 211,502 | 7/9/2024 | |
9.0.0-preview.5.24306.7 | 119,646 | 6/11/2024 | |
9.0.0-preview.4.24266.19 | 87,741 | 5/21/2024 | |
9.0.0-preview.3.24172.9 | 235,041 | 4/11/2024 | |
9.0.0-preview.2.24128.5 | 121,194 | 3/12/2024 | |
9.0.0-preview.1.24080.9 | 127,030 | 2/13/2024 | |
8.0.2 | 97,046,940 | 7/9/2024 | |
8.0.1 | 89,295,206 | 1/9/2024 | |
8.0.0 | 298,812,607 | 11/14/2023 | |
8.0.0-rc.2.23479.6 | 1,582,967 | 10/10/2023 | |
8.0.0-rc.1.23419.4 | 616,452 | 9/12/2023 | |
8.0.0-preview.7.23375.6 | 614,731 | 8/8/2023 | |
8.0.0-preview.6.23329.7 | 216,491 | 7/11/2023 | |
8.0.0-preview.5.23280.8 | 128,533 | 6/13/2023 | |
8.0.0-preview.4.23259.5 | 356,181 | 5/16/2023 | |
8.0.0-preview.3.23174.8 | 209,584 | 4/11/2023 | |
8.0.0-preview.2.23128.3 | 101,798 | 3/14/2023 | |
8.0.0-preview.1.23110.8 | 142,804 | 2/21/2023 | |
7.0.4 | 48,800,327 | 3/14/2023 | |
7.0.3 | 57,217,831 | 2/14/2023 | |
7.0.2 | 7,116,577 | 1/10/2023 | |
7.0.1 | 4,273,035 | 12/13/2022 | |
7.0.0 | 125,631,214 | 11/7/2022 | |
7.0.0-rc.2.22472.3 | 280,839 | 10/11/2022 | |
7.0.0-rc.1.22426.10 | 194,601 | 9/14/2022 | |
7.0.0-preview.7.22375.6 | 212,980 | 8/9/2022 | |
7.0.0-preview.6.22324.4 | 100,273 | 7/12/2022 | |
7.0.0-preview.5.22301.12 | 65,178 | 6/14/2022 | |
7.0.0-preview.4.22229.4 | 83,387 | 5/10/2022 | |
7.0.0-preview.3.22175.4 | 82,884 | 4/13/2022 | |
7.0.0-preview.2.22152.2 | 42,820 | 3/14/2022 | |
7.0.0-preview.1.22076.8 | 55,321 | 2/17/2022 | |
6.0.1 | 1,672,326 | 11/12/2024 | |
6.0.0 | 393,051,283 | 11/8/2021 | |
6.0.0-rc.2.21480.5 | 612,944 | 10/12/2021 | |
6.0.0-rc.1.21451.13 | 376,001 | 9/14/2021 | |
6.0.0-preview.7.21377.19 | 249,814 | 8/10/2021 | |
6.0.0-preview.6.21352.12 | 119,269 | 7/14/2021 | |
6.0.0-preview.5.21301.5 | 68,672 | 6/15/2021 | |
6.0.0-preview.4.21253.7 | 66,863 | 5/24/2021 | |
6.0.0-preview.3.21201.4 | 208,261 | 4/8/2021 | |
6.0.0-preview.2.21154.6 | 116,523 | 3/11/2021 | |
6.0.0-preview.1.21102.12 | 123,874 | 2/12/2021 | |
5.0.0 | 235,487,060 | 11/9/2020 | |
5.0.0-rc.2.20475.5 | 286,282 | 10/13/2020 | |
5.0.0-rc.1.20451.14 | 336,696 | 9/14/2020 | |
5.0.0-preview.8.20407.11 | 359,338 | 8/25/2020 | |
5.0.0-preview.7.20364.11 | 73,318 | 7/21/2020 | |
5.0.0-preview.6.20305.6 | 56,728 | 6/25/2020 | |
5.0.0-preview.5.20278.1 | 29,281 | 6/10/2020 | |
5.0.0-preview.4.20251.6 | 56,899 | 5/18/2020 | |
5.0.0-preview.3.20215.2 | 237,061 | 4/23/2020 | |
5.0.0-preview.2.20160.3 | 232,381 | 4/2/2020 | |
5.0.0-preview.1.20120.4 | 91,911 | 3/16/2020 | |
3.1.32 | 17,348,642 | 12/13/2022 | |
3.1.31 | 2,854,593 | 11/8/2022 | |
3.1.30 | 2,762,588 | 10/11/2022 | |
3.1.29 | 2,442,790 | 9/13/2022 | |
3.1.28 | 3,002,469 | 8/9/2022 | |
3.1.27 | 2,150,131 | 7/12/2022 | |
3.1.26 | 1,897,627 | 6/14/2022 | |
3.1.25 | 3,022,547 | 5/10/2022 | |
3.1.24 | 2,118,973 | 4/11/2022 | |
3.1.23 | 3,545,780 | 3/8/2022 | |
3.1.22 | 20,057,301 | 12/14/2021 | |
3.1.21 | 9,342,412 | 11/7/2021 | |
3.1.20 | 4,580,721 | 10/11/2021 | |
3.1.19 | 5,290,361 | 9/14/2021 | |
3.1.18 | 45,861,323 | 8/10/2021 | |
3.1.17 | 6,832,795 | 7/13/2021 | |
3.1.16 | 10,587,363 | 6/8/2021 | |
3.1.15 | 8,700,202 | 5/11/2021 | |
3.1.14 | 17,228,799 | 4/6/2021 | |
3.1.13 | 14,322,029 | 3/9/2021 | |
3.1.12 | 11,413,218 | 2/9/2021 | |
3.1.11 | 14,008,257 | 1/12/2021 | |
3.1.10 | 24,510,142 | 11/9/2020 | |
3.1.9 | 75,264,323 | 10/13/2020 | |
3.1.8 | 68,113,501 | 9/8/2020 | |
3.1.7 | 36,069,184 | 8/11/2020 | |
3.1.6 | 40,052,355 | 7/14/2020 | |
3.1.5 | 40,843,421 | 6/9/2020 | |
3.1.4 | 46,802,815 | 5/12/2020 | |
3.1.3 | 111,410,528 | 3/24/2020 | |
3.1.2 | 77,031,294 | 2/18/2020 | |
3.1.1 | 43,697,317 | 1/14/2020 | |
3.1.0 | 205,763,035 | 12/3/2019 | |
3.1.0-preview3.19553.2 | 221,989 | 11/13/2019 | |
3.1.0-preview2.19525.4 | 74,311 | 11/1/2019 | |
3.1.0-preview1.19506.1 | 1,206,830 | 10/15/2019 | |
3.0.3 | 83,319,351 | 2/18/2020 | |
3.0.2 | 1,070,607 | 1/14/2020 | |
3.0.1 | 6,341,947 | 11/18/2019 | |
3.0.0 | 93,494,899 | 9/23/2019 | |
3.0.0-rc1.19456.10 | 90,937 | 9/16/2019 | |
3.0.0-preview9.19423.4 | 1,493,490 | 9/4/2019 | |
3.0.0-preview8.19405.4 | 570,531 | 8/13/2019 | |
3.0.0-preview7.19362.4 | 219,880 | 7/23/2019 | |
3.0.0-preview6.19304.6 | 343,160 | 6/12/2019 | |
3.0.0-preview5.19227.9 | 811,986 | 5/6/2019 | |
3.0.0-preview4.19216.2 | 70,052 | 4/18/2019 | |
3.0.0-preview3.19153.1 | 339,279 | 3/6/2019 | |
3.0.0-preview.19074.2 | 178,290 | 1/29/2019 | |
3.0.0-preview.18572.1 | 153,663 | 12/3/2018 | |
2.2.4 | 33,146,057 | 4/9/2019 | |
2.2.0 | 271,287,289 | 12/3/2018 | |
2.2.0-preview3-35497 | 408,408 | 10/17/2018 | |
2.2.0-preview2-35157 | 286,873 | 9/12/2018 | |
2.2.0-preview1-35029 | 154,479 | 8/22/2018 | |
2.1.10 | 95,960,948 | 4/9/2019 | |
2.1.1 | 418,573,482 | 6/18/2018 | |
2.1.0 | 423,279,910 | 5/29/2018 | |
2.1.0-rc1-final | 575,371 | 5/6/2018 | |
2.1.0-preview2-final | 628,700 | 4/10/2018 | |
2.1.0-preview1-final | 633,213 | 2/26/2018 | |
2.0.2 | 8,056,354 | 5/7/2018 | |
2.0.1 | 12,871,131 | 3/13/2018 | |
2.0.0 | 398,676,084 | 8/11/2017 | |
2.0.0-preview2-final | 149,917 | 6/28/2017 | |
2.0.0-preview1-final | 57,616 | 5/10/2017 | |
1.1.2 | 16,026,144 | 5/9/2017 | |
1.1.1 | 4,361,368 | 3/6/2017 | |
1.1.0 | 3,067,003 | 11/16/2016 | |
1.1.0-preview1-final | 17,383 | 10/24/2016 | |
1.0.2 | 2,812,195 | 3/6/2017 | |
1.0.1 | 393,087 | 12/12/2016 | |
1.0.0 | 3,714,439 | 6/27/2016 | |
1.0.0-rc2-final | 41,415 | 5/16/2016 | |
1.0.0-rc1-final | 906,930 | 11/18/2015 |