protobuf-net 3.4.30

protobuf-net

A contract-based serializer for .NET that reads and writes Google's "protocol buffers" wire format. The API follows normal .NET patterns — broadly comparable to XmlSerializer or DataContractSerializer — so you annotate the types you already have:

[ProtoContract]
public class Person
{
    [ProtoMember(1)] public int Id { get; set; }
    [ProtoMember(2)] public string Name { get; set; }
}

using var file = File.Create("person.bin");
Serializer.Serialize(file, new Person { Id = 12345, Name = "Fred" });

Members are identified on the wire by number, not by name, so the numbers matter: pick them once and keep them stable. Everything the attributes do can also be configured at runtime, via RuntimeTypeModel.

Contract-first works too: generate C#/VB from a .proto schema at build time, from the command line with protobuf-net.Protogen, or in your browser at protobuf-net.dev.

Build tools — analyzers that check your contracts, and the generator that emits serializers at compile time so native AOT and trimming work — ship with this package by default; opt out with <ProtoBufDisableBuildTools>true</ProtoBufDisableBuildTools>.

More

Showing the top 20 packages that depend on protobuf-net.

Packages Downloads
prometheus-net
.NET client for prometheus.io
30
prometheus-net
.NET client for prometheus.io
32
prometheus-net
.NET client for prometheus.io
33
prometheus-net
.NET client for prometheus.io
36
prometheus-net
.NET metrics exporter for the Prometheus monitoring and alerting system
30
prometheus-net
.NET metrics exporter for the Prometheus monitoring and alerting system
35
protobuf-net.Reflection
ProtoBuf DSL (proto2 / proto3) and desccriptor tools for protobuf-net
56
protobuf-net.Reflection
ProtoBuf DSL (proto2 / proto3) and descriptor tools for protobuf-net
49
protobuf-net.Reflection
ProtoBuf DSL (proto2 / proto3) and descriptor tools for protobuf-net
52
protobuf-net.Reflection
ProtoBuf DSL (proto2 / proto3) and descriptor tools for protobuf-net
54
protobuf-net.Reflection
ProtoBuf DSL (proto2 / proto3) and descriptor tools for protobuf-net
55
protobuf-net.Reflection
ProtoBuf DSL (proto2 / proto3) and descriptor tools for protobuf-net
56
protobuf-net.Reflection
ProtoBuf DSL (proto2 / proto3) and descriptor tools for protobuf-net
58
protobuf-net.Reflection
ProtoBuf DSL (proto2 / proto3) and descriptor tools for protobuf-net
60

https://github.com/protobuf-net/protobuf-net/releases

.NET Framework 4.6.2

.NET 8.0

.NET Standard 2.0

.NET Standard 2.1

Version Downloads Last updated
3.4.30 17 09/18/2026
3.4.29 15 09/15/2026
3.4.28 16 09/15/2026
3.4.21 15 08/31/2026
3.4.19 17 08/26/2026
3.4.14 17 08/22/2026
3.4.0 19 08/21/2026
3.3.21 24 08/18/2026
3.3.8 22 08/15/2026
3.3.0 25 08/15/2026
3.2.56 61 03/20/2026
3.2.55 61 03/20/2026
3.2.52 53 03/20/2026
3.2.46 49 03/20/2026
3.2.45 52 03/20/2026
3.2.30 50 03/20/2026
3.2.26 59 03/20/2026
3.2.16 50 03/20/2026
3.2.12 59 03/20/2026
3.2.8 58 03/20/2026
3.2.0 56 03/20/2026
3.1.33 48 03/20/2026
3.1.26 60 03/20/2026
3.1.25 55 03/20/2026
3.1.22 51 03/20/2026
3.1.17 57 03/20/2026
3.1.4 50 03/20/2026
3.1.0 63 03/20/2026
3.0.131 53 03/20/2026
3.0.101 66 03/20/2026
3.0.73 65 03/20/2026
3.0.72 57 03/20/2026
3.0.62 56 03/20/2026
3.0.52 57 03/20/2026
3.0.29 61 03/20/2026
3.0.27 57 03/20/2026
3.0.24 57 03/20/2026
3.0.21 60 03/20/2026
3.0.18 56 03/20/2026
3.0.13 59 03/20/2026
3.0.2 51 03/20/2026
3.0.0 58 03/20/2026
2.4.9 58 03/20/2026
2.4.8 60 03/20/2026
2.4.7 54 03/20/2026
2.4.6 59 03/20/2026
2.4.4 51 03/20/2026
2.4.1 59 03/20/2026
2.4.0 58 03/20/2026
2.3.17 35 03/20/2026
2.3.16 49 03/20/2026
2.3.15 59 03/20/2026
2.3.14 58 03/20/2026
2.3.14-alpha1 60 03/20/2026
2.3.13 55 03/20/2026
2.3.7 61 03/20/2026
2.3.6 53 03/20/2026
2.3.5 53 03/20/2026
2.3.4 53 03/20/2026
2.3.3 52 03/20/2026
2.3.2 57 03/20/2026
2.3.1 56 03/20/2026
2.3.0 58 03/20/2026
2.3.0-gamma 56 03/20/2026
2.2.1 54 03/20/2026
2.1.0 54 03/20/2026
2.1.0-alpha-5 55 03/20/2026
2.1.0-alpha-4 56 03/20/2026
2.1.0-alpha-3 57 03/20/2026
2.1.0-alpha-1 53 03/20/2026
2.0.0.668 59 03/20/2026
2.0.0.666 56 03/20/2026
2.0.0.664 60 03/20/2026
2.0.0.663 62 03/20/2026
2.0.0.640 50 03/20/2026
2.0.0.638 55 03/20/2026
2.0.0.621 57 03/20/2026
2.0.0.619 53 03/20/2026
2.0.0.614 63 03/20/2026
2.0.0.612 59 03/20/2026
2.0.0.611 54 03/20/2026
2.0.0.602 61 03/20/2026
2.0.0.601 52 03/20/2026
2.0.0.480 49 03/20/2026
1.0.0.280 51 03/20/2026