Zini.Configuration
1.0.0
dotnet add package Zini.Configuration --version 1.0.0
NuGet\Install-Package Zini.Configuration -Version 1.0.0
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="Zini.Configuration" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Zini.Configuration" Version="1.0.0" />
<PackageReference Include="Zini.Configuration" />
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 Zini.Configuration --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Zini.Configuration, 1.0.0"
#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 Zini.Configuration@1.0.0
#: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=Zini.Configuration&version=1.0.0
#tool nuget:?package=Zini.Configuration&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Zini
A high-performance, zero-allocation INI-style configuration file parser for .NET 10 with Microsoft.Extensions.Configuration integration.
Features
- Zero-allocation hot path — uses
SearchValues<char>for SIMD-accelerated parsing - Immutable output — returns
FrozenDictionaryinstances - Case-insensitive sections and keys with
OrdinalIgnoreCasecomparison - Section merging — duplicate sections merge automatically (last-write-wins for keys)
- Quoted values — preserves whitespace and comment characters inside
"..." - Inline comments —
#and;stripped from unquoted values - Global keys — keys before any section header are supported
- Configuration integration — drop-in
IConfigurationBuilder.AddConfigFile()extension
Installation
dotnet add package Zini.Configuration # IConfigurationBuilder support
Quick Start
Direct Parsing
using Zini;
var config = ConfigParser.Parse("""
# Application settings
app_name = MyApp
[Server]
host = localhost
port = 8080
[Database]
connection = "Server=db;Port=5432;User=""admin"""
""");
// Access values
var host = config["Server"]["host"]; // "localhost"
var appName = config[""]["app_name"]; // "MyApp" (global section)
With Microsoft.Extensions.Configuration
using Microsoft.Extensions.Configuration;
using Zini.Configuration;
var configuration = new ConfigurationBuilder()
.AddConfigFile("appsettings.ini", optional: false, reloadOnChange: true)
.Build();
var host = configuration["Server:host"]; // "localhost"
var appName = configuration["app_name"]; // "MyApp" (global keys have no prefix)
Format Specification
See docs/config-format-spec.md for the full format specification including quoting rules, merging behavior, and error handling.
Building
dotnet build Zini.slnx
dotnet test Zini.slnx
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.Configuration.FileExtensions (>= 10.0.5)
- Zini (>= 1.0.0)
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 |
|---|---|---|
| 1.0.0 | 72 | 4/5/2026 |