protobuf-net 3.4.51

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,330
protobuf-net.Grpc.Reflection
Package Description
1,069
protobuf-net.Grpc
Package Description
959
protobuf-net.Grpc
Package Description
61
prometheus-net
.NET client for prometheus.io
59
prometheus-net
.NET client for prometheus.io
58
protobuf-net.Grpc
Package Description
58
prometheus-net
.NET client for prometheus.io
57
prometheus-net
.NET metrics exporter for the Prometheus monitoring and alerting system
57
prometheus-net
.NET metrics exporter for the Prometheus monitoring and alerting system
55
QuantConnect.Common
QuantConnect LEAN Engine: Common Project - A collection of common definitions and utils
55
protobuf-net.Grpc
Package Description
54
prometheus-net
.NET metrics exporter for the Prometheus monitoring and alerting system
54
prometheus-net
.NET client for prometheus.io
53
ECommon
An infrastructure utility library written by c#.
53
QuantConnect.Common
QuantConnect LEAN Engine: Common Project - A collection of common definitions and utils
53
protobuf-net.Grpc
Package Description
52
prometheus-net
.NET metrics exporter for the Prometheus monitoring and alerting system
52

.NET Framework 4.6.2

.NET 8.0

.NET Standard 2.0

.NET Standard 2.1

Version Downloads Last updated
3.4.51 4 11/27/2026
3.4.40 28 10/22/2026
3.4.30 38 09/17/2026
3.4.29 30 09/17/2026
3.4.28 34 09/17/2026
3.4.21 29 09/01/2026
3.4.19 32 08/26/2026
3.4.14 33 08/22/2026
3.4.0 34 08/20/2026
3.3.21 34 08/18/2026
3.3.8 31 08/12/2026
3.3.0 38 08/14/2026
3.3.0-g6785ecbb35 59 01/11/2026
3.2.56 15 09/28/2026
3.2.55 8 10/02/2026
3.2.52 31 09/30/2026
3.2.46 20 09/28/2026
3.2.45 17 10/11/2026
3.2.30 1,089 12/13/2025
3.2.26 57 12/13/2025
3.2.16 47 12/11/2025
3.2.12 46 12/11/2025
3.2.8 58 12/14/2025
3.2.0 53 12/12/2025
3.1.33 50 12/12/2025
3.1.26 42 12/13/2025
3.1.25 59 12/13/2025
3.1.22 14 10/05/2026
3.1.17 58 12/11/2025
3.1.4 21 10/02/2026
3.1.0 18 10/11/2026
3.0.131 53 12/12/2025
3.0.101 63 12/19/2025
3.0.73 59 12/11/2025
3.0.72 56 12/31/2025
3.0.62 60 12/12/2025
3.0.52 63 12/11/2025
3.0.29 14 10/16/2026
3.0.27 55 12/11/2025
3.0.24 20 09/28/2026
3.0.21 17 09/29/2026
3.0.18 16 10/01/2026
3.0.13 54 12/12/2025
3.0.2 15 10/07/2026
3.0.0 56 12/11/2025
2.4.9 19 10/05/2026
2.4.8 960 09/28/2026
2.4.7 16 10/03/2026
2.4.6 21 09/29/2026
2.4.4 22 10/06/2026
2.4.1 64 12/11/2025
2.4.0 37 09/29/2026
2.3.17 16 10/06/2026
2.3.16 20 10/02/2026
2.3.15 20 09/30/2026
2.3.14 69 12/11/2025
2.3.14-alpha1 15 09/28/2026
2.3.13 16 09/28/2026
2.3.7 58 12/11/2025
2.3.6 58 12/14/2025
2.3.5 56 12/12/2025
2.3.4 65 12/12/2025
2.3.3 58 12/12/2025
2.3.2 54 12/12/2025
2.3.1 15 10/10/2026
2.3.0 57 12/12/2025
2.3.0-gamma 62 12/12/2025
2.2.1 18 10/11/2026
2.1.0 60 01/01/2026
2.1.0-alpha-5 60 12/13/2025
2.1.0-alpha-4 59 12/12/2025
2.1.0-alpha-3 54 12/11/2025
2.1.0-alpha-1 16 10/11/2026
2.0.0.668 47 12/13/2025
2.0.0.666 52 12/11/2025
2.0.0.664 21 10/11/2026
2.0.0.663 48 12/12/2025
2.0.0.640 56 12/12/2025
2.0.0.638 51 12/12/2025
2.0.0.621 59 12/13/2025
2.0.0.619 50 12/13/2025
2.0.0.614 54 12/11/2025
2.0.0.612 12 10/06/2026
2.0.0.611 56 12/11/2025
2.0.0.602 48 12/13/2025
2.0.0.601 44 12/13/2025
2.0.0.480 16 09/29/2026
1.0.0.280 16 10/11/2026