![]() |
VOOZH | about |
dotnet add package JLib.Configuration --version 0.12.0
NuGet\Install-Package JLib.Configuration -Version 0.12.0
<PackageReference Include="JLib.Configuration" Version="0.12.0" />
<PackageVersion Include="JLib.Configuration" Version="0.12.0" />Directory.Packages.props
<PackageReference Include="JLib.Configuration" />Project file
paket add JLib.Configuration --version 0.12.0
#r "nuget: JLib.Configuration, 0.12.0"
#:package JLib.Configuration@0.12.0
#addin nuget:?package=JLib.Configuration&version=0.12.0Install as a Cake Addin
#tool nuget:?package=JLib.Configuration&version=0.12.0Install as a Cake Tool
provides reflection based config section access either direct or via dependency injection.
using JLib.Configuration;
using JLib.Reflection.DependencyInjection;
IConfiguration myConfig = ...;
// ...
var services = new ServiceCollection ()
.AddTypeCache(out var typeCache, nameof(JLib))
.AddAllConfigSections(myConfig, typeCache)
// ...
;
// ...
using var provider = services.BuildServiceProvider();
var section = provider.Services.GetRequiredService<MyConfigSection>();
[ConfigSectionName("Test")]
public class MyConfigSection
{
public string MyValue { get; init; }
}
using JLib.Configuration;
IConfiguration myConfig = ...;
var configSection myConfig.GetConfigSectionObject<MyConfigSection>();
[ConfigSectionName("Test")]
public class MyConfigSection
{
public string MyValue { get; init; }
}
{
"Environment": "Dev1",
"SectionA":{
"Environment": "Dev2",
"Dev1":{
"MyValue":"Ignored"
},
"Dev2":{
"MyValue":"Used"
},
"MyValue":"Ignored"
},
"SectionB":{
"Dev1":{
"MyValue":"Used"
},
"Dev2":{
"MyValue":"Ignored"
},
"MyValue":"Ignored"
},
"SectionC":{
"Environment": "",
"Dev1":{
"MyValue":"Ignored"
},
"Dev2":{
"MyValue":"Ignored"
},
"MyValue":"Used"
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on JLib.Configuration:
| Package | Downloads |
|---|---|
|
JLib.DependencyInjection
Package Description |
|
|
JLib
Metapackage for all JLIb packages |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.12.0 | 295 | 1/15/2026 |
| 0.11.2 | 446 | 5/12/2025 |
| 0.11.1 | 328 | 2/21/2025 |
| 0.11.0 | 316 | 2/19/2025 |
| 0.10.0 | 319 | 2/17/2025 |
| 0.9.5 | 515 | 1/30/2025 |
| 0.9.4 | 401 | 1/29/2025 |
| 0.9.3 | 431 | 1/28/2025 |
| 0.9.2 | 384 | 1/22/2025 |
| 0.9.1 | 407 | 1/22/2025 |
| 0.9.0 | 496 | 1/20/2025 |
| 0.8.8 | 687 | 10/18/2024 |
| 0.8.7 | 469 | 10/18/2024 |
| 0.8.6 | 414 | 10/17/2024 |
| 0.8.5 | 489 | 9/18/2024 |
| 0.8.4 | 449 | 9/18/2024 |
| 0.8.3 | 486 | 9/11/2024 |
| 0.8.1 | 689 | 9/2/2024 |
| 0.8.0 | 450 | 8/28/2024 |
| 0.7.6 | 472 | 8/27/2024 |