Nethermind.Libp2p.Generators.Protobuf
3.31.1
dotnet add package Nethermind.Libp2p.Generators.Protobuf --version 3.31.1
NuGet\Install-Package Nethermind.Libp2p.Generators.Protobuf -Version 3.31.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Nethermind.Libp2p.Generators.Protobuf" Version="3.31.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nethermind.Libp2p.Generators.Protobuf" Version="3.31.1" />
<PackageReference Include="Nethermind.Libp2p.Generators.Protobuf" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Nethermind.Libp2p.Generators.Protobuf --version 3.31.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Nethermind.Libp2p.Generators.Protobuf, 3.31.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Nethermind.Libp2p.Generators.Protobuf@3.31.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Nethermind.Libp2p.Generators.Protobuf&version=3.31.1
#tool nuget:?package=Nethermind.Libp2p.Generators.Protobuf&version=3.31.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Protobuf generator
The project automatically generates C# types for protobuf types using protoc(no need to install it separately, it's in the package).
Usage
- Add Google.Protobuf package,
and Libp2p.Generators.Protobuf as analyzer dependency to you project
... <ItemGroup> ... <PackageReference Include="Google.Protobuf" Version="3.31.1" /> <PackageReference Include="Libp2p.Generators.Protobuf" Version="3.31.1" /> </ItemGroup> ... - Make sure that Google.Protobuf version matches Libp2p.Generators.Protobuf project version
- Add a .proto file and set "Build Action" to "C# analyzer additional file" for it, "Copy to Output Directory"="Do not copy". It should look like
<AdditionalFiles Include="Dto\Rpc.proto" CopyToOutputDirectory="Never" />in csproj file. - .cs file should be generated next to the .proto one.
Additional notes
In case you want to use protobuf version that is more modern that is used by the generator, feel free to create an issue with request to update the version or just make a pr.
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Google.Protobuf.Tools (>= 3.31.1)
- Microsoft.CodeAnalysis (>= 4.11.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.31.1 | 248 | 11/6/2025 |
| 3.28.3 | 232 | 2/10/2025 |
| 3.28.0 | 206 | 9/11/2024 |
| 1.0.0-preview.32 | 145 | 9/9/2024 |
| 1.0.0-preview.30 | 119 | 9/6/2024 |
| 1.0.0-preview.29 | 152 | 10/3/2023 |
| 1.0.0-preview.28 | 167 | 9/7/2023 |
| 1.0.0-preview.27 | 169 | 9/5/2023 |
| 1.0.0-preview.6 | 119 | 6/25/2024 |
| 1.0.0-preview.5 | 119 | 6/21/2024 |
| 1.0.0-preview.4 | 124 | 2/29/2024 |
| 1.0.0-preview.3 | 141 | 10/18/2023 |
| 1.0.0-preview.2 | 147 | 9/1/2023 |
| 1.0.0-preview.1 | 175 | 8/28/2023 |