Serde 0.10.2

dotnet add package Serde --version 0.10.2
                    
NuGet\Install-Package Serde -Version 0.10.2
                    
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="Serde" Version="0.10.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Serde" Version="0.10.2" />
                    
Directory.Packages.props
<PackageReference Include="Serde" />
                    
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 Serde --version 0.10.2
                    
#r "nuget: Serde, 0.10.2"
                    
#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 Serde@0.10.2
                    
#: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=Serde&version=0.10.2
                    
Install as a Cake Addin
#tool nuget:?package=Serde&version=0.10.2
                    
Install as a Cake Tool

Serde-dn

Serde-dn is a port of the popular serde.rs Rust serialization/deserialization library to .NET.

It is a multi-format serialization provider, meaning that it can support multiple output formats.

This package contains the core Serde library and support for JSON. Additional NuGet packages can provide support for additional formats.

Getting started

You can now use the [GenerateSerialize] and [GenerateDeserialize] attributes to automatically implement serialization and deserialization for your own types. Don't forget to mark them partial!

using Serde;
using Serde.Json;

string output = JsonSerializer.Serialize(new SampleClass());

// prints: {"X":3,"Y":"sample"}
Console.WriteLine(output);

var deserialized = JsonSerializer.Deserialize<SampleClass>(output);

// prints SampleClass { X = 3, Y = sample }
Console.WriteLine(deserialized);

[GenerateSerialize, GenerateDeserialize]
partial record SampleClass
{
    // automatically includes public properties and fields
    public int X { get; init; } = 3;
    public string Y = "sample";
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 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

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Serde:

Package Downloads
StaticCs.Collections

Package Description

Serde.CmdLine

Package Description

Serde.Xml

XML serialization backend for Serde

Serde.MsgPack

Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Serde:

Repository Stars
dn-vm/dnvm
dnvm is a command-line interface for installing and updating different dotnet SDKs
Version Downloads Last Updated
0.10.2 306 2/8/2026
0.10.1 226 1/29/2026
0.10.0 700 1/7/2026
0.9.1 755 10/28/2025
0.9.0 440 10/27/2025
0.8.0 2,515 6/10/2025
0.8.0-preview9 291 5/14/2025
0.8.0-preview8 495 4/27/2025
0.8.0-preview7 255 4/23/2025
0.8.0-preview6 261 4/16/2025
0.8.0-preview5 552 4/4/2025
0.8.0-preview4 311 1/19/2025
0.8.0-preview3 161 1/5/2025
0.8.0-preview2 319 12/17/2024
0.8.0-preview1 298 12/15/2024
0.7.1 447 12/4/2024
0.7.0 420 11/16/2024
0.7.0-preview2 275 7/31/2024
0.7.0-preview1 233 7/6/2024
Loading failed