protobuf-net 3.4.0
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 |
|---|---|
|
protobuf-net.Reflection
ProtoBuf DSL (proto2 / proto3) and desccriptor tools for protobuf-net
|
41 |
|
protobuf-net.Reflection
ProtoBuf DSL (proto2 / proto3) and descriptor tools for protobuf-net
|
40 |
|
protobuf-net.Reflection
ProtoBuf DSL (proto2 / proto3) and descriptor tools for protobuf-net
|
42 |
|
protobuf-net.Reflection
ProtoBuf DSL (proto2 / proto3) and descriptor tools for protobuf-net
|
43 |
|
protobuf-net.Reflection
ProtoBuf DSL (proto2 / proto3) and descriptor tools for protobuf-net
|
45 |
|
protobuf-net.Reflection
ProtoBuf DSL (proto2 / proto3) and descriptor tools for protobuf-net
|
46 |
|
protobuf-net.Reflection
ProtoBuf DSL (proto2 / proto3) and descriptor tools for protobuf-net
|
50 |
.NET Framework 4.6.2
- protobuf-net.Core (>= 3.4.0)
.NET 8.0
- protobuf-net.Core (>= 3.4.0)
.NET Standard 2.0
- protobuf-net.Core (>= 3.4.0)
- System.Reflection.Emit (>= 4.7.0)
- System.Reflection.Emit.Lightweight (>= 4.7.0)
.NET Standard 2.1
- protobuf-net.Core (>= 3.4.0)
| Version | Downloads | Last updated |
|---|---|---|
| 3.4.14 | 3 | 08/22/2026 |
| 3.4.0 | 5 | 08/21/2026 |
| 3.3.21 | 11 | 08/18/2026 |
| 3.3.8 | 10 | 08/15/2026 |
| 3.3.0 | 12 | 08/15/2026 |
| 3.2.56 | 49 | 03/20/2026 |
| 3.2.55 | 47 | 03/20/2026 |
| 3.2.52 | 42 | 03/20/2026 |
| 3.2.46 | 39 | 03/20/2026 |
| 3.2.45 | 38 | 03/20/2026 |
| 3.2.30 | 40 | 03/20/2026 |
| 3.2.26 | 45 | 03/20/2026 |
| 3.2.16 | 40 | 03/20/2026 |
| 3.2.12 | 49 | 03/20/2026 |
| 3.2.8 | 47 | 03/20/2026 |
| 3.2.0 | 43 | 03/20/2026 |
| 3.1.33 | 38 | 03/20/2026 |
| 3.1.26 | 47 | 03/20/2026 |
| 3.1.25 | 46 | 03/20/2026 |
| 3.1.22 | 39 | 03/20/2026 |
| 3.1.17 | 45 | 03/20/2026 |
| 3.1.4 | 38 | 03/20/2026 |
| 3.1.0 | 49 | 03/20/2026 |
| 3.0.131 | 43 | 03/20/2026 |
| 3.0.101 | 53 | 03/20/2026 |
| 3.0.73 | 48 | 03/20/2026 |
| 3.0.72 | 48 | 03/20/2026 |
| 3.0.62 | 48 | 03/20/2026 |
| 3.0.52 | 47 | 03/20/2026 |
| 3.0.29 | 47 | 03/20/2026 |
| 3.0.27 | 47 | 03/20/2026 |
| 3.0.24 | 45 | 03/20/2026 |
| 3.0.21 | 47 | 03/20/2026 |
| 3.0.18 | 48 | 03/20/2026 |
| 3.0.13 | 48 | 03/20/2026 |
| 3.0.2 | 41 | 03/20/2026 |
| 3.0.0 | 49 | 03/20/2026 |
| 2.4.9 | 44 | 03/20/2026 |
| 2.4.8 | 46 | 03/20/2026 |
| 2.4.7 | 39 | 03/20/2026 |
| 2.4.6 | 48 | 03/20/2026 |
| 2.4.4 | 42 | 03/20/2026 |
| 2.4.1 | 47 | 03/20/2026 |
| 2.4.0 | 46 | 03/20/2026 |
| 2.3.17 | 27 | 03/20/2026 |
| 2.3.16 | 38 | 03/20/2026 |
| 2.3.15 | 46 | 03/20/2026 |
| 2.3.14 | 41 | 03/20/2026 |
| 2.3.14-alpha1 | 46 | 03/20/2026 |
| 2.3.13 | 44 | 03/20/2026 |
| 2.3.7 | 51 | 03/20/2026 |
| 2.3.6 | 42 | 03/20/2026 |
| 2.3.5 | 41 | 03/20/2026 |
| 2.3.4 | 44 | 03/20/2026 |
| 2.3.3 | 40 | 03/20/2026 |
| 2.3.2 | 45 | 03/20/2026 |
| 2.3.1 | 43 | 03/20/2026 |
| 2.3.0 | 46 | 03/20/2026 |
| 2.3.0-gamma | 47 | 03/20/2026 |
| 2.2.1 | 43 | 03/20/2026 |
| 2.1.0 | 44 | 03/20/2026 |
| 2.1.0-alpha-5 | 46 | 03/20/2026 |
| 2.1.0-alpha-4 | 44 | 03/20/2026 |
| 2.1.0-alpha-3 | 48 | 03/20/2026 |
| 2.1.0-alpha-1 | 44 | 03/20/2026 |
| 2.0.0.668 | 45 | 03/20/2026 |
| 2.0.0.666 | 44 | 03/20/2026 |
| 2.0.0.664 | 44 | 03/20/2026 |
| 2.0.0.663 | 45 | 03/20/2026 |
| 2.0.0.640 | 40 | 03/20/2026 |
| 2.0.0.638 | 41 | 03/20/2026 |
| 2.0.0.621 | 44 | 03/20/2026 |
| 2.0.0.619 | 41 | 03/20/2026 |
| 2.0.0.614 | 52 | 03/20/2026 |
| 2.0.0.612 | 42 | 03/20/2026 |
| 2.0.0.611 | 39 | 03/20/2026 |
| 2.0.0.602 | 47 | 03/20/2026 |
| 2.0.0.601 | 42 | 03/20/2026 |
| 2.0.0.480 | 40 | 03/20/2026 |
| 1.0.0.280 | 38 | 03/20/2026 |