VOOZH about

URL: https://www.nuget.org/packages/cascap.common.configuration

⇱ NuGet Gallery | CasCap.Common.Configuration 4.12.1




👁 Image
CasCap.Common.Configuration 4.12.1

Prefix Reserved
dotnet add package CasCap.Common.Configuration --version 4.12.1
 
 
NuGet\Install-Package CasCap.Common.Configuration -Version 4.12.1
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CasCap.Common.Configuration" Version="4.12.1" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CasCap.Common.Configuration" Version="4.12.1" />
 
Directory.Packages.props
<PackageReference Include="CasCap.Common.Configuration" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CasCap.Common.Configuration --version 4.12.1
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CasCap.Common.Configuration, 4.12.1"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CasCap.Common.Configuration@4.12.1
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CasCap.Common.Configuration&version=4.12.1
 
Install as a Cake Addin
#tool nuget:?package=CasCap.Common.Configuration&version=4.12.1
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

CasCap.Common.Configuration

Configuration bootstrapping helpers for .NET applications — standard IConfiguration pipeline setup, Azure Key Vault integration, and validated IOptions<T> binding for IAppConfig records.

Installation

dotnet add package CasCap.Common.Configuration

Purpose

Provides a standardised way to build the configuration pipeline (appsettings.json, environment overrides, environment variables, user secrets, Azure Key Vault) and to bind configuration sections to IAppConfig record types with DataAnnotations validation on startup.

Target frameworks: netstandard2.0, net8.0, net9.0, net10.0

Extensions

Class Key Methods
ConfigurationBuilderExtensions AddStandardConfiguration() — sets base path, registers appsettings.json, appsettings.{env}.json, environment variables, and optional user secrets
AddKeyVaultConfiguration() — conditionally adds Azure Key Vault (skips silently when URI or credential is null)
AddKeyVaultConfigurationFrom() — partial-builds configuration, extracts Key Vault credentials via delegate, then adds Key Vault
ConfigurationServiceCollectionExtensions AddCasCapConfiguration<TConfig>() — binds a configuration section to an IAppConfig record with ValidateDataAnnotations and ValidateOnStart

Usage

var configuration = new ConfigurationBuilder()
 .AddStandardConfiguration(environmentName, Assembly.GetExecutingAssembly())
 .AddKeyVaultConfigurationFrom(cfg =>
 {
 var appConfig = cfg.GetSection(AppConfig.ConfigurationSectionName).Get<AppConfig>();
 return (appConfig?.KeyVaultUri, appConfig?.TokenCredential);
 })
 .Build();

Configuration Hierarchy

Configuration bootstrapping flow with layered sources:

flowchart TD
 START["ConfigurationBuilder"]

 subgraph StandardConfig["AddStandardConfiguration()"]
 BASE["SetBasePath(contentRoot)"]
 APPSETTINGS["appsettings.json"]
 ENV_FILE["appsettings.{Environment}.json"]
 ENV_VARS["Environment Variables"]
 SECRETS["User Secrets<br/>(Development only)"]
 end

 subgraph KeyVaultConfig["AddKeyVaultConfiguration()"]
 PARTIAL["Partial Build Config"]
 EXTRACT["Extract Key Vault URI<br/>+ TokenCredential"]
 KV["Azure Key Vault<br/>(secrets override)"]
 end

 subgraph Binding["IOptions Binding"]
 VALIDATE["AddCasCapConfiguration<TConfig>()<br/>ValidateDataAnnotations<br/>ValidateOnStart"]
 OPTIONS["IOptions<TConfig><br/>(DI injectable)"]
 end

 START --> BASE
 BASE --> APPSETTINGS
 APPSETTINGS --> ENV_FILE
 ENV_FILE --> ENV_VARS
 ENV_VARS --> SECRETS

 SECRETS --> PARTIAL
 PARTIAL --> EXTRACT
 EXTRACT -."if URI present".-> KV

 KV --> VALIDATE
 SECRETS -."if no Key Vault".-> VALIDATE
 VALIDATE --> OPTIONS

Layering Priority (later sources override earlier ones):

  1. appsettings.json
  2. appsettings.{Environment}.json
  3. Environment Variables
  4. User Secrets (Development only)
  5. Azure Key Vault (if configured)

Dependencies

NuGet Packages

Package Purpose
Azure.Extensions.AspNetCore.Configuration.Secrets Azure Key Vault configuration provider
Microsoft.Extensions.Configuration.EnvironmentVariables Environment variable configuration source
Microsoft.Extensions.Configuration.FileExtensions File-based configuration helpers (SetBasePath)
Microsoft.Extensions.Configuration.Json JSON file configuration source
Microsoft.Extensions.Configuration.UserSecrets User secrets configuration source
Microsoft.Extensions.Options.ConfigurationExtensions IOptions<T> binding to IConfiguration
Microsoft.Extensions.Options.DataAnnotations ValidateDataAnnotations / ValidateOnStart

Project References

Project Purpose
CasCap.Common.Abstractions IAppConfig contract used as a generic constraint
CasCap.Common.Logging ApplicationLogging static logger factory
Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 was computed.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  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. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on CasCap.Common.Configuration:

Package Downloads
CasCap.Api.Knx

.NET client library for KNX building automation — connects via KNXnet/IP tunnelling or routing, monitors group-address telegrams, and fans events out to configurable sinks.

CasCap.Api.SignalCli

Typed .NET client for the signal-cli REST API with REST polling and JSON-RPC WebSocket transports, webhook endpoints, health checks, and INotifier integration.

CasCap.Api.Fronius

.NET client library for Fronius solar inverter monitoring — samples power-flow data via the local Solar API v1 and dispatches readings to configurable sinks.

CasCap.Api.DoorBird

.NET client library for DoorBird IP video door station — captures doorbell, motion and RFID events via the local LAN API and dispatches them to configurable sinks.

CasCap.Api.Buderus

.NET client library for Buderus KM200 heat-pump controller — polls temperature datapoints via the encrypted local HTTPS API and dispatches readings to configurable sinks.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.12.1 219 6/14/2026
4.12.0 221 6/12/2026
4.11.9 267 6/10/2026
4.11.8 199 5/27/2026
4.11.7 97 5/27/2026
4.11.6 366 5/26/2026
4.11.5 116 5/22/2026
4.11.4 144 5/20/2026
4.11.3 487 5/13/2026
4.11.2 131 5/11/2026
4.11.1 112 5/11/2026
4.11.0 386 5/8/2026
4.10.5 106 5/4/2026
4.10.4 99 5/2/2026
4.10.3 248 4/24/2026
4.10.2 110 4/24/2026
4.10.1 112 4/23/2026
4.10.0 104 4/23/2026
4.9.3 124 4/20/2026
4.9.2 100 4/19/2026
Loading failed