Net4x.Configuration.Interfaces 2.5.0.26287

dotnet add package Net4x.Configuration.Interfaces --version 2.5.0.26287
                    
NuGet\Install-Package Net4x.Configuration.Interfaces -Version 2.5.0.26287
                    
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="Net4x.Configuration.Interfaces" Version="2.5.0.26287" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Net4x.Configuration.Interfaces" Version="2.5.0.26287" />
                    
Directory.Packages.props
<PackageReference Include="Net4x.Configuration.Interfaces" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Net4x.Configuration.Interfaces --version 2.5.0.26287
                    
#r "nuget: Net4x.Configuration.Interfaces, 2.5.0.26287"
                    
#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.
#:package Net4x.Configuration.Interfaces@2.5.0.26287
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Net4x.Configuration.Interfaces&version=2.5.0.26287
                    
Install as a Cake Addin
#tool nuget:?package=Net4x.Configuration.Interfaces&version=2.5.0.26287
                    
Install as a Cake Tool

Net4x.Configuration.Interfaces

Contracts and model types for the Net4x configuration libraries. Reference this package from code that uses configuration without depending on the implementation. The implementation is in Net4x.Configuration.Library.

Installation

dotnet add package Net4x.Configuration.Interfaces

Target frameworks: net35, net40, net45, net461, netstandard2.0.

Contents

Configuration (ConfigurationLibrary.Configuration)

Type Purpose
IAppConfig Configuration from an XML .config file
IJsonConfig Configuration from a JSON file
IWritableConfigurationBase Configuration that can be saved: Save(Stream writeStream = null)
ISaver Custom save strategy: DoSave(IConfigurationBase, Stream)

Persisters (ConfigurationLibrary.Configuration.Persister)

Type Purpose
IConfigurationPersister Reads and writes XML configuration, with optional encryption (Cipher)
IJsonFileConfigPersister Reads and writes JSON configuration

Encryption (ConfigurationLibrary.Configuration.Cipher)

Type Purpose
IConfigurationCipher EncryptConfiguration() / DecryptConfiguration()
IConfigurationBaseEx Wraps a configuration and transforms values through ValueGetter / ValueSetter

Utilities

Type Purpose
ConfigurationLibrary.Conversion.IKeysGetter Pulls keys out of command-line arguments by prefix and suffix
ConfigurationLibrary.Utility.IHttpUtility UrlDecode(string, Encoding)
ConfigurationLibrary.Utility.IStringsHelper FirstNonEmptyString, MakeCamelPascalCase

Model

ConfigurationLibrary.Json.Configuration is the JSON file shape. Settings live under an appSettings object:

{
  "appSettings": {
    "Key": "Value"
  }
}

Usage

using ConfigurationLibrary.Configuration;

public class ReportService
{
    private readonly IAppConfig _config;

    public ReportService(IAppConfig config) => _config = config;

    public string OutputFolder => _config["OutputFolder"];
}

License

Apache-2.0


Copyright (c) Piero Viano. All rights reserved. Authors: Piero Viano

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net35 is compatible.  net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on Net4x.Configuration.Interfaces:

Package Downloads
Net4x.Configuration.Library

Library to read and write configuration files

Net4x.RemoteLogger.Interfaces

RemoteLoggerLib Interfaces

Net4x.Configuration.Crypt

Package Description

Net4x.RemoteLogger.Library

Library to log remotely

Net4x.DataAccessLibrary.Configuration

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.5.0.26287 54 10/15/2026
2.5.0.26236 6,501 8/24/2026
2.5.0.5 1,961 7/17/2026
2.5.0.4 732 2/2/2026
2.5.0.3 772 1/23/2026
2.5.0.2 989 1/5/2026
2.5.0.1 723 12/30/2025
2.5.0 2,129 11/9/2025
1.6.0 5,298 3/31/2025
1.3.0 8,501 8/26/2023
1.3.0-at20230505032200 7,380 5/7/2023