Extensions.Configuration 0.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Extensions.Configuration --version 0.0.3                
NuGet\Install-Package Extensions.Configuration -Version 0.0.3                
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="Extensions.Configuration" Version="0.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Extensions.Configuration --version 0.0.3                
#r "nuget: Extensions.Configuration, 0.0.3"                
#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.
// Install Extensions.Configuration as a Cake Addin
#addin nuget:?package=Extensions.Configuration&version=0.0.3

// Install Extensions.Configuration as a Cake Tool
#tool nuget:?package=Extensions.Configuration&version=0.0.3                

Extensions.Configuration

alternate text is missing from this package README image

alternate text is missing from this package README image

Extensions.Configuration.Resolver

alternate text is missing from this package README image

Description

Within system configuration, sometimes references to other configuration entries are used.

{
    "AppName" : "MyApp",
    "UserSettings" : "${HOMEPATH}/.{$env:AppName}/settings.json"
}

This package adds functionality to Microsoft.Extensions.Configuration, which can resolve such references.

Installation

dotnet add package Extensions.Configuration

Usage

In Program.cs

using Microsoft.Extensions.Configuration

hostbuilder.ConfigureAppConfiguration(config =>
{
    config  
        .AddJsonFile(...)
        .AddEnvironmentVariables()
        .AddCommandLine(args);
})

In Startup.cs

var userSettingsResolved = configuration.ResolveValue("UserSettings");
// Returns e.g.: C:\Users\MyUser\.MyApp\settings.json

Remarks

Supported placholders:

{$env:KEY}, ${KEY}, $(KEY), %KEY%
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.4 100,519 4/13/2020
0.0.3 890 1/26/2020