Configure a .NET application from a variety of sources.


Keywords
configuration, json, yaml, environment
License
Apache-2.0
Install
Install-Package FlexibleConfiguration -Version 2.0.0

Documentation

FlexibleConfiguration

⚠️ When possible, use .NET Configuration Providers instead! This package was created before Configuration Providers were ready for production use, and is no longer actively maintained.

FlexibleConfiguration is a small library that makes it easy to gather application configuration from a variety of sources.

These sources are supported:

  • Manually-specified key-value pairs
  • Newline-delimited strings in the format property.subProperty = value
  • Environment variables
  • JSON (from a string or file)
  • YAML (from a string or file)
  • An existing object instance or anonymous type containing properties and values

Supported Platforms

  • .NET Framework 4.5 and higher
  • .NET Core (netstandard1.3)

Getting the Code

  • Nuget: install-package FlexibleConfiguration or dotnet add package FlexibleConfiguration
  • Source code: git clone git@github.com:nbarbettini/FlexibleConfiguration.git