Kuddle.Net.Extensions.Configuration 0.7.1-preview.1

This is a prerelease version of Kuddle.Net.Extensions.Configuration.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Kuddle.Net.Extensions.Configuration --version 0.7.1-preview.1
                    
NuGet\Install-Package Kuddle.Net.Extensions.Configuration -Version 0.7.1-preview.1
                    
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="Kuddle.Net.Extensions.Configuration" Version="0.7.1-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Kuddle.Net.Extensions.Configuration" Version="0.7.1-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="Kuddle.Net.Extensions.Configuration" />
                    
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 Kuddle.Net.Extensions.Configuration --version 0.7.1-preview.1
                    
#r "nuget: Kuddle.Net.Extensions.Configuration, 0.7.1-preview.1"
                    
#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 Kuddle.Net.Extensions.Configuration@0.7.1-preview.1
                    
#: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=Kuddle.Net.Extensions.Configuration&version=0.7.1-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Kuddle.Net.Extensions.Configuration&version=0.7.1-preview.1&prerelease
                    
Install as a Cake Tool

Kuddle.Net

Kuddle.Net is a .NET implementation of a KDL parser/serializer targeting v2 of the spec. KDL is a concise, human-readable language built for configuration and data exchange. Head to https://kdl.dev for more specifics on the KDL document language itself.

Installation

dotnet add package Kuddle.Net

Quick Start: Serialization & Deserialization

For most use cases, KdlSerializer provides the easiest way to work with KDL data by mapping it directly to C# classes.

Deserializing KDL to Objects

using Kuddle.Serialization;

var kdl = """
    server "production" {
        host "10.0.0.1"
        port 8080
    }
    """;

// Deserialize a single root node
var config = KdlSerializer.Deserialize<ServerConfig>(kdl);

Serializing Objects to KDL

var myConfig = new ServerConfig { Host = "localhost", Port = 3000 };
string kdl = KdlSerializer.Serialize(myConfig);

Document-Level Deserialization

If your KDL file contains multiple top-level nodes of the same type, use DeserializeMany:

var kdl = """
    user "alice" role="admin"
    user "bob" role="user"
    """;

var users = KdlSerializer.DeserializeMany<User>(kdl);

Mapping with Attributes

To control how C# properties map to KDL arguments, properties, and child nodes, use the provided attributes.

Attribute Target Purpose
[KdlArgument(index)] Property Maps to a positional argument
[KdlProperty(key)] Property Maps to a key="value" property
[KdlNode(name)] Property Maps to a child node (or collection of nodes)
[KdlType(name)] Class Overrides the default node name

Detailed Attribute Documentation


Advanced Usage

Lower-Level AST Access

If you need full control over the KDL structure, you can use KdlReader to get a KdlDocument AST.

KdlDocument doc = KdlReader.Read(kdlString);

Lower-Level API Documentation


License

Kuddle.Net is licensed under the MIT License.

Product 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.

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
0.8.1-preview.1 39 1/18/2026
0.8.0 78 1/18/2026
0.7.1-preview.1 38 1/18/2026
0.7.0 84 1/16/2026
0.6.1-preview.1 39 1/16/2026
0.6.0 84 1/15/2026
0.5.1-preview.1 41 1/15/2026
0.5.0 84 1/14/2026
0.4.2-preview.1 39 1/14/2026
0.4.1 94 12/31/2025
0.4.1-preview.4 41 12/31/2025
0.0.0-preview 87 12/31/2025