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.Grpc
Package Description
|
2,276 |
|
protobuf-net.Grpc
Package Description
|
1,063 |
|
protobuf-net.Grpc
Package Description
|
42 |
|
prometheus-net
.NET metrics exporter for the Prometheus monitoring and alerting system
|
39 |
|
QuantConnect.Common
QuantConnect LEAN Engine: Common Project - A collection of common definitions and utils
|
39 |
|
QuantConnect.Common
QuantConnect LEAN Engine: Common Project - A collection of common definitions and utils
|
38 |
|
protobuf-net.Grpc
Package Description
|
37 |
|
prometheus-net
.NET client for prometheus.io
|
37 |
|
QuantConnect.Common
QuantConnect LEAN Engine: Common Project - A collection of common definitions and utils
|
37 |
|
prometheus-net
.NET client for prometheus.io
|
36 |
|
protobuf-net.Grpc
Package Description
|
36 |
|
QuantConnect.Common
QuantConnect LEAN Engine: Common Project - A collection of common definitions and utils
|
36 |
.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.21 | 1 | 09/01/2026 |
| 3.4.19 | 7 | 08/26/2026 |
| 3.4.14 | 8 | 08/22/2026 |
| 3.4.0 | 12 | 08/20/2026 |
| 3.3.21 | 14 | 08/18/2026 |
| 3.3.8 | 15 | 08/12/2026 |
| 3.3.0 | 16 | 08/14/2026 |
| 3.3.0-g6785ecbb35 | 47 | 01/11/2026 |
| 3.2.56 | 36 | 12/10/2025 |
| 3.2.55 | 44 | 12/10/2025 |
| 3.2.52 | 40 | 12/10/2025 |
| 3.2.46 | 36 | 12/10/2025 |
| 3.2.45 | 35 | 12/10/2025 |
| 3.2.30 | 26 | 12/13/2025 |
| 3.2.26 | 40 | 12/13/2025 |
| 3.2.16 | 34 | 12/11/2025 |
| 3.2.12 | 28 | 12/11/2025 |
| 3.2.8 | 35 | 12/14/2025 |
| 3.2.0 | 39 | 12/12/2025 |
| 3.1.33 | 35 | 12/12/2025 |
| 3.1.26 | 28 | 12/13/2025 |
| 3.1.25 | 40 | 12/13/2025 |
| 3.1.22 | 33 | 12/10/2025 |
| 3.1.17 | 36 | 12/11/2025 |
| 3.1.4 | 35 | 12/10/2025 |
| 3.1.0 | 38 | 12/10/2025 |
| 3.0.131 | 36 | 12/12/2025 |
| 3.0.101 | 41 | 12/19/2025 |
| 3.0.73 | 42 | 12/11/2025 |
| 3.0.72 | 36 | 12/31/2025 |
| 3.0.62 | 43 | 12/12/2025 |
| 3.0.52 | 41 | 12/11/2025 |
| 3.0.29 | 28 | 12/10/2025 |
| 3.0.27 | 37 | 12/11/2025 |
| 3.0.24 | 36 | 12/10/2025 |
| 3.0.21 | 43 | 12/10/2025 |
| 3.0.18 | 39 | 12/10/2025 |
| 3.0.13 | 40 | 12/12/2025 |
| 3.0.2 | 38 | 12/10/2025 |
| 3.0.0 | 39 | 12/11/2025 |
| 2.4.9 | 41 | 12/10/2025 |
| 2.4.8 | 2,282 | 12/10/2025 |
| 2.4.7 | 39 | 12/10/2025 |
| 2.4.6 | 43 | 12/10/2025 |
| 2.4.4 | 38 | 12/10/2025 |
| 2.4.1 | 41 | 12/11/2025 |
| 2.4.0 | 46 | 12/10/2025 |
| 2.3.17 | 47 | 12/10/2025 |
| 2.3.16 | 50 | 12/10/2025 |
| 2.3.15 | 45 | 12/10/2025 |
| 2.3.14 | 47 | 12/11/2025 |
| 2.3.14-alpha1 | 44 | 12/10/2025 |
| 2.3.13 | 37 | 12/10/2025 |
| 2.3.7 | 36 | 12/11/2025 |
| 2.3.6 | 34 | 12/14/2025 |
| 2.3.5 | 33 | 12/12/2025 |
| 2.3.4 | 40 | 12/12/2025 |
| 2.3.3 | 42 | 12/12/2025 |
| 2.3.2 | 36 | 12/12/2025 |
| 2.3.1 | 39 | 12/09/2025 |
| 2.3.0 | 40 | 12/12/2025 |
| 2.3.0-gamma | 41 | 12/12/2025 |
| 2.2.1 | 30 | 12/10/2025 |
| 2.1.0 | 33 | 01/01/2026 |
| 2.1.0-alpha-5 | 36 | 12/13/2025 |
| 2.1.0-alpha-4 | 41 | 12/12/2025 |
| 2.1.0-alpha-3 | 38 | 12/11/2025 |
| 2.1.0-alpha-1 | 27 | 12/10/2025 |
| 2.0.0.668 | 29 | 12/13/2025 |
| 2.0.0.666 | 33 | 12/11/2025 |
| 2.0.0.664 | 35 | 12/10/2025 |
| 2.0.0.663 | 28 | 12/12/2025 |
| 2.0.0.640 | 38 | 12/12/2025 |
| 2.0.0.638 | 30 | 12/12/2025 |
| 2.0.0.621 | 35 | 12/13/2025 |
| 2.0.0.619 | 30 | 12/13/2025 |
| 2.0.0.614 | 36 | 12/11/2025 |
| 2.0.0.612 | 31 | 12/10/2025 |
| 2.0.0.611 | 41 | 12/11/2025 |
| 2.0.0.602 | 30 | 12/13/2025 |
| 2.0.0.601 | 30 | 12/13/2025 |
| 2.0.0.480 | 37 | 12/10/2025 |
| 1.0.0.280 | 35 | 12/10/2025 |