protobuf-net 3.4.40

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
Tradeon.SteamKit2
.NET library that aims to interoperate with the Steam network.
682
Tradeon.SteamKit2
.NET library that aims to interoperate with the Steam network.
12
SteamKit2
Package Description
11
SteamKit2
.NET library that aims to interoperate with the Steam network.
11
SteamKit2
Package Description
10
SteamKit2
.NET library that aims to interoperate with the Steam network.
10
SteamKit2
Package Description
9
SteamKit2
.NET library that aims to interoperate with the Steam network.
9
SteamKit2
.NET library that aims to interoperate with the Steam network.
8

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.40 1 11/04/2026
3.4.30 7 09/17/2026
3.4.29 6 09/17/2026
3.4.28 6 09/17/2026
3.4.21 6 09/15/2026
3.4.19 7 09/05/2026
3.4.14 6 09/17/2026
3.4.0 6 09/19/2026
3.3.21 7 09/11/2026
3.3.8 7 08/12/2026
3.3.0 9 08/16/2026
3.2.56 5 12/11/2025
3.2.55 3 12/11/2025
3.2.52 6 12/09/2025
3.2.46 3 12/11/2025
3.2.45 4 12/11/2025
3.2.30 10 12/11/2025
3.2.26 13 12/09/2025
3.2.16 11 12/11/2025
3.2.12 12 12/10/2025
3.2.8 12 12/09/2025
3.2.0 10 12/10/2025
3.1.33 12 12/09/2025
3.1.26 11 12/09/2025
3.1.25 10 12/11/2025
3.1.22 11 12/11/2025
3.1.17 11 12/26/2025
3.1.4 9 12/10/2025
3.1.0 10 12/10/2025
3.0.131 12 12/09/2025
3.0.101 12 12/09/2025
3.0.73 11 12/26/2025
3.0.72 13 12/09/2025
3.0.62 11 12/26/2025
3.0.52 10 12/09/2025
3.0.29 10 12/26/2025
3.0.27 11 12/26/2025
3.0.24 11 12/09/2025
3.0.21 12 12/26/2025
3.0.18 11 12/26/2025
3.0.13 10 12/26/2025
3.0.2 12 12/10/2025
3.0.0 12 12/10/2025
2.4.9 11 12/10/2025
2.4.8 10 12/10/2025
2.4.7 14 12/10/2025
2.4.6 10 12/10/2025
2.4.4 11 12/09/2025
2.4.1 10 12/10/2025
2.4.0 10 12/10/2025
2.3.17 12 12/26/2025
2.3.16 11 12/09/2025
2.3.15 12 12/26/2025
2.3.14 10 12/26/2025
2.3.14-alpha1 12 12/14/2025
2.3.13 11 12/26/2025
2.3.7 12 12/10/2025
2.3.6 13 12/09/2025
2.3.5 9 12/09/2025
2.3.4 10 12/09/2025
2.3.3 10 12/10/2025
2.3.2 10 12/10/2025
2.3.1 11 12/10/2025
2.3.0 11 12/10/2025
2.3.0-gamma 10 12/10/2025
2.2.1 10 12/10/2025
2.1.0 9 12/10/2025
2.1.0-alpha-5 10 12/11/2025
2.1.0-alpha-4 11 12/26/2025
2.1.0-alpha-3 11 12/26/2025
2.1.0-alpha-1 13 12/09/2025
2.0.0.668 13 12/09/2025
2.0.0.666 12 12/26/2025
2.0.0.664 11 12/26/2025
2.0.0.663 11 12/26/2025
2.0.0.640 11 12/26/2025
2.0.0.638 10 12/14/2025
2.0.0.621 11 12/14/2025
2.0.0.619 10 12/11/2025
2.0.0.614 10 12/26/2025
2.0.0.612 12 12/26/2025
2.0.0.611 12 12/14/2025
2.0.0.602 12 12/26/2025
2.0.0.601 12 12/26/2025
2.0.0.480 13 12/11/2025
1.0.0.280 14 12/09/2025