Skip to main content
net8.0.NETStandard2.0

NodaTime support for protobuf-net: serializes Instant, Duration etc as the protobuf well-known types

Published
Aug 21, 2026
1mo ago
Total Downloads
522.9K
522,910

Install

dotnet add package protobuf-net.NodaTime --version 3.4.14
ProductVersions
.NET
net8.0
.NET Standard
netstandard2.0

README

protobuf-net.NodaTime

NodaTime support for protobuf-net: Instant, Duration, LocalDate, LocalTime and IsoDayOfWeek serialize as the matching protobuf well-known and google.type messages, so the payloads interoperate with other protobuf implementations.

With a compile-time model ([ProtoModel], as used for native AOT), there is nothing to register: this package declares the pairings at assembly level, so any generated model in a project that references it picks them up.

For the runtime model, register them once:

RuntimeTypeModel.Default.AddNodaTime();

Conversions between the two worlds are also available directly, via NodaTimeExtensions.

More

Changes from Previous Version

No structural changes between v3.4.0 and v3.4.14.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.