protobuf-net 3.4.29

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,540
protobuf-net.Grpc
Package Description
1,322
protobuf-net.Grpc.Reflection
Package Description
97
protobuf-net.Grpc
Package Description
44
prometheus-net
.NET client for prometheus.io
42
prometheus-net
.NET client for prometheus.io
41
QuantConnect.Common
QuantConnect LEAN Engine: Common Project - A collection of common definitions and utils
41
prometheus-net
.NET client for prometheus.io
40
prometheus-net
.NET metrics exporter for the Prometheus monitoring and alerting system
40
QuantConnect.Common
QuantConnect LEAN Engine: Common Project - A collection of common definitions and utils
40
protobuf-net.Grpc
Package Description
39
prometheus-net
.NET client for prometheus.io
39
QuantConnect.Common
QuantConnect LEAN Engine: Common Project - A collection of common definitions and utils
39

.NET Framework 4.6.2

.NET 8.0

.NET Standard 2.0

.NET Standard 2.1

Version Downloads Last updated
3.4.30 4 09/17/2026
3.4.29 7 09/17/2026
3.4.28 9 09/17/2026
3.4.21 15 09/01/2026
3.4.19 14 08/26/2026
3.4.14 14 08/22/2026
3.4.0 15 08/20/2026
3.3.21 16 08/18/2026
3.3.8 18 08/12/2026
3.3.0 19 08/14/2026
3.3.0-g6785ecbb35 48 01/11/2026
3.2.56 37 12/10/2025
3.2.55 45 12/10/2025
3.2.52 43 12/10/2025
3.2.46 38 12/10/2025
3.2.45 38 12/10/2025
3.2.30 119 12/13/2025
3.2.26 42 12/13/2025
3.2.16 36 12/11/2025
3.2.12 33 12/11/2025
3.2.8 39 12/14/2025
3.2.0 41 12/12/2025
3.1.33 36 12/12/2025
3.1.26 30 12/13/2025
3.1.25 43 12/13/2025
3.1.22 36 12/10/2025
3.1.17 39 12/11/2025
3.1.4 38 12/10/2025
3.1.0 41 12/10/2025
3.0.131 39 12/12/2025
3.0.101 46 12/19/2025
3.0.73 45 12/11/2025
3.0.72 41 12/31/2025
3.0.62 48 12/12/2025
3.0.52 45 12/11/2025
3.0.29 30 12/10/2025
3.0.27 39 12/11/2025
3.0.24 39 12/10/2025
3.0.21 46 12/10/2025
3.0.18 41 12/10/2025
3.0.13 44 12/12/2025
3.0.2 41 12/10/2025
3.0.0 41 12/11/2025
2.4.9 46 12/10/2025
2.4.8 2,549 12/10/2025
2.4.7 42 12/10/2025
2.4.6 46 12/10/2025
2.4.4 43 12/10/2025
2.4.1 46 12/11/2025
2.4.0 49 12/10/2025
2.3.17 50 12/10/2025
2.3.16 53 12/10/2025
2.3.15 49 12/10/2025
2.3.14 50 12/11/2025
2.3.14-alpha1 51 12/10/2025
2.3.13 39 12/10/2025
2.3.7 42 12/11/2025
2.3.6 38 12/14/2025
2.3.5 38 12/12/2025
2.3.4 44 12/12/2025
2.3.3 43 12/12/2025
2.3.2 39 12/12/2025
2.3.1 43 12/09/2025
2.3.0 43 12/12/2025
2.3.0-gamma 45 12/12/2025
2.2.1 32 12/10/2025
2.1.0 38 01/01/2026
2.1.0-alpha-5 37 12/13/2025
2.1.0-alpha-4 42 12/12/2025
2.1.0-alpha-3 41 12/11/2025
2.1.0-alpha-1 30 12/10/2025
2.0.0.668 32 12/13/2025
2.0.0.666 36 12/11/2025
2.0.0.664 41 12/10/2025
2.0.0.663 29 12/12/2025
2.0.0.640 42 12/12/2025
2.0.0.638 36 12/12/2025
2.0.0.621 41 12/13/2025
2.0.0.619 35 12/13/2025
2.0.0.614 38 12/11/2025
2.0.0.612 34 12/10/2025
2.0.0.611 44 12/11/2025
2.0.0.602 32 12/13/2025
2.0.0.601 32 12/13/2025
2.0.0.480 40 12/10/2025
1.0.0.280 41 12/10/2025