ArturRios.Configuration

Composable configuration loading from JSON files, environment variables and .env files, with clear precedence.

Docs NuGet License: Attribution

A lightweight configuration loader built on Microsoft.Extensions.Configuration. It composes several sources — appsettings and other JSON files, environment variables, .env files — under one simple precedence rule: later-added sources override earlier ones.

What you get

  • ConfigurationLoader — composes multiple sources into one configuration.
  • EnvironmentProvider — environment-specific logic (Development, Production, …).
  • SettingsProvider — layered settings.
  • Enums that name the moving parts: ConfigurationSourceType, DataFormatType, EnvironmentType, OutputType.
  • Extensible: implement your own provider or source.

The same loader backs ArturRios.Util.WebApi’s startup and ArturRios.Util.Test’s functional test base, so tests and production read settings the same way.

Install

dotnet add package ArturRios.Configuration

Family dependencies

…and transitively ArturRios.Util, ArturRios.Output.

Third-party: DotNetEnv, Microsoft.Extensions.*.