Skip to content

Installation

NuGet Packages

Core Package

bash
dotnet add package Apq.Cfg

The core package includes:

  • JSON configuration source
  • Environment variables support
  • Dependency injection integration

Extension Packages

Install additional packages based on your needs:

PackageDescription
Apq.Cfg.YamlYAML configuration support
Apq.Cfg.XmlXML configuration support
Apq.Cfg.IniINI configuration support
Apq.Cfg.TomlTOML configuration support
Apq.Cfg.Env.env file support
Apq.Cfg.ConsulConsul configuration center
Apq.Cfg.NacosNacos configuration center
Apq.Cfg.ApolloApollo configuration center
Apq.Cfg.EtcdEtcd configuration center
Apq.Cfg.ZookeeperZookeeper configuration center
Apq.Cfg.RedisRedis configuration source
Apq.Cfg.VaultHashiCorp Vault secrets
Apq.Cfg.DatabaseDatabase configuration source
Apq.Cfg.CryptoEncryption and masking
Apq.Cfg.SourceGeneratorSource generator for AOT

Installation Examples

bash
# YAML support
dotnet add package Apq.Cfg.Yaml

# Consul integration
dotnet add package Apq.Cfg.Consul

# Encryption support
dotnet add package Apq.Cfg.Crypto

Supported Platforms

PlatformVersions
.NET8.0, 10.0 (LTS)

IDE Support

Apq.Cfg works with all major .NET IDEs:

  • Visual Studio 2022+
  • Visual Studio Code with C# extension
  • JetBrains Rider
  • Visual Studio for Mac

Next Steps

Released under the MIT License