Skip to main content
.NETFramework4.6.2net8.0.NETStandard2.0.NETStandard2.1

The protobuf-net serialization engine and build-time tooling; most projects should reference protobuf-net, which adds the runtime type model

Published
Aug 31, 2026
1mo ago
Total Downloads
166.3M
166,316,682

Install

dotnet add package protobuf-net.Core --version 3.4.21
ProductVersions
.NET
net8.0
.NET Standard
netstandard2.0netstandard2.1
Other
.NETFramework4.6.2

README

protobuf-net.Core

The protobuf-net serialization engine: readers, writers, and the serializer contracts, without the reflection/ref-emit type model. It is also where the build-time tooling lives — the contract analyzers and the compile-time serializer generator that make native AOT and trimming work.

Most people should reference protobuf-net instead, which brings this in and adds Serializer and RuntimeTypeModel. Reference this package directly only when the serializers are generated at compile time and you never need the runtime model.

Opt out of the build tooling with <ProtoBufDisableBuildTools>true</ProtoBufDisableBuildTools>.

More

Changes from Previous Version

No structural changes between v3.4.19 and v3.4.21.

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