Skip to main content

A file-based .NET configuration provider that supports wildcard notation.

Total Downloads
3.2K
3,200
Published
Feb 16, 2022
4y ago

Get Started

dotnet add package WildcardConfigurationProvider --version 1.0.0
ProductVersions
.NET Standard
netstandard2.0
Other
.NETFramework4.6.1

README

WildcardConfigurationProvider

A file-based .NET configuration provider that supports wildcard notation. Technically, this provider acts as an adapter for a set of FileConfigurationProviders.

ℹ️ At the moment, only JSON is supported for the underlying file type. XML and INI are forthcoming.

Installation

Install-Package WildcardConfigurationProvider

Usage

Use the wildcard provider just like any other FileConfigurationProvider, except that it supports wildcard notation.

var builder = new ConfigurationBuilder();
var config = builder.AddJsonWildcard("appsettings.*.json").Build();

⚠️ While this configuration provider supports reloadOnChange, it only watches those config files that are present at configuration build time. In other words, it doesn't watch the directory for new, additional matches to the wildcard. To include newly-created files in your configuration, a config.Reload() is required.

Downloads by Version

Not enough data for chart

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.