Extensions.Configuration.Resolver 0.0.4

Functionality to resolve values from configuration providers for Microsoft.Extensions.Configuration.

Install-Package Extensions.Configuration.Resolver -Version 0.0.4
dotnet add package Extensions.Configuration.Resolver --version 0.0.4
<PackageReference Include="Extensions.Configuration.Resolver" Version="0.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Extensions.Configuration.Resolver --version 0.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Extensions.Configuration.Resolver, 0.0.4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Extensions.Configuration.Resolver as a Cake Addin
#addin nuget:?package=Extensions.Configuration.Resolver&version=0.0.4

// Install Extensions.Configuration.Resolver as a Cake Tool
#tool nuget:?package=Extensions.Configuration.Resolver&version=0.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Extensions.Configuration.Resolver

Description

This package adds functionality to Microsoft.Extensions.Configuration, to resolve substitutions within configuration entries.

Installation

dotnet add package Microsoft.Extensions.Configuration
dotnet add package Extensions.Configuration.Resolver

Usage

Examplary json configuration:

{
  "AppName": "MyApp",
  "UserSettings": "${HOMEPATH}/.{$env:AppName}/settings.json"
}
using Microsoft.Extensions.Configuration;

var configuration = new ConfigurationBuilder
    .AddJsonFile(...)
    .AddEnvironmentVariables()
    .Build();

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

Remarks

Supported placeholders:

{$env:KEY}, ${KEY}, $(KEY), %KEY%

Extensions.Configuration.Resolver

Description

This package adds functionality to Microsoft.Extensions.Configuration, to resolve substitutions within configuration entries.

Installation

dotnet add package Microsoft.Extensions.Configuration
dotnet add package Extensions.Configuration.Resolver

Usage

Examplary json configuration:

{
  "AppName": "MyApp",
  "UserSettings": "${HOMEPATH}/.{$env:AppName}/settings.json"
}
using Microsoft.Extensions.Configuration;

var configuration = new ConfigurationBuilder
    .AddJsonFile(...)
    .AddEnvironmentVariables()
    .Build();

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

Remarks

Supported placeholders:

{$env:KEY}, ${KEY}, $(KEY), %KEY%

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Extensions.Configuration.Resolver:

Package Downloads
Extensions.Configuration
Adds functionality to Microsoft.Extensions.Configuration.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.0.4 19,471 4/13/2020
0.0.3 400 1/26/2020