Cogito.Extensions.Configuration
4.0.4
dotnet add package Cogito.Extensions.Configuration --version 4.0.4
NuGet\Install-Package Cogito.Extensions.Configuration -Version 4.0.4
<PackageReference Include="Cogito.Extensions.Configuration" Version="4.0.4" />
<PackageVersion Include="Cogito.Extensions.Configuration" Version="4.0.4" />
<PackageReference Include="Cogito.Extensions.Configuration" />
paket add Cogito.Extensions.Configuration --version 4.0.4
#r "nuget: Cogito.Extensions.Configuration, 4.0.4"
#:package Cogito.Extensions.Configuration@4.0.4
#addin nuget:?package=Cogito.Extensions.Configuration&version=4.0.4
#tool nuget:?package=Cogito.Extensions.Configuration&version=4.0.4
Cogito.Extensions.Configuration
Configuration sources for code that still has to read System.Configuration, plus a .json provider
that walks up the directory tree.
Why
Moving a .NET Framework application onto IConfiguration stalls on the parts that still call
ConfigurationManager.AppSettings. These providers expose the legacy appSettings and
connectionStrings sections as ordinary configuration, so both APIs see the same values and the
migration can happen a caller at a time rather than all at once.
Install
dotnet add package Cogito.Extensions.Configuration
Reading the legacy sections
var configuration = new ConfigurationBuilder()
.AddConfigurationManagerAppSetting()
.AddConfigurationManagerConnectionString()
.Build();
Layered json files
builder.AddParentJsonFiles("appsettings.json");
Loads that file from every directory from the application's own upwards, nearest last — so a solution can keep shared settings at the root and let each application override them.
Bind binds a section onto an existing instance rather than constructing one.
License
MIT.
| 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 was computed. 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 was computed. 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 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. 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.7.2
- Microsoft.Extensions.Configuration (>= 10.0.12)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.12)
- Microsoft.Extensions.Configuration.Json (>= 10.0.12)
-
.NETStandard 2.0
- Microsoft.Extensions.Configuration (>= 10.0.12)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.12)
- Microsoft.Extensions.Configuration.Json (>= 10.0.12)
-
net6.0
- Microsoft.Extensions.Configuration (>= 10.0.12)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.12)
- Microsoft.Extensions.Configuration.Json (>= 10.0.12)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Cogito.Extensions.Configuration:
| Package | Downloads |
|---|---|
|
Cogito.Extensions.Options.Configuration
Various additions to Microsoft.Extensions.Options. |
|
|
Cogito.Extensions.Configuration.Autofac
Extensions for Microsoft.Extensions.Configuration. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.4 | 0 | 11/28/2026 |
| 4.0.3 | 879 | 9/14/2026 |
| 4.0.2 | 147 | 9/14/2026 |
| 4.0.1 | 834 | 9/10/2026 |
| 4.0.0 | 8,663 | 12/20/2024 |
| 3.0.2 | 13,059 | 11/29/2023 |
| 3.0.1 | 1,700 | 11/7/2023 |
| 2.1.15 | 6,895 | 7/2/2021 |
| 2.1.14 | 4,162 | 10/29/2020 |
| 2.1.12 | 16,494 | 10/18/2020 |
| 2.1.10 | 27,726 | 10/18/2020 |
| 2.1.9 | 1,469 | 8/29/2020 |
| 2.1.8 | 8,714 | 8/7/2020 |
| 2.1.7 | 1,396 | 8/7/2020 |
| 2.1.5 | 1,463 | 8/7/2020 |
| 2.1.3 | 1,422 | 8/7/2020 |
| 2.1.1 | 1,445 | 8/7/2020 |
| 2.1.0 | 1,531 | 6/30/2020 |
| 2.0.9 | 1,429 | 6/30/2020 |
| 2.0.7 | 2,400 | 3/2/2020 |