Nethermind.Libp2p.Generators.Protobuf 3.28.0

dotnet add package Nethermind.Libp2p.Generators.Protobuf --version 3.28.0                
NuGet\Install-Package Nethermind.Libp2p.Generators.Protobuf -Version 3.28.0                
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.28.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nethermind.Libp2p.Generators.Protobuf --version 3.28.0                
#r "nuget: Nethermind.Libp2p.Generators.Protobuf, 3.28.0"                
#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.
// Install Nethermind.Libp2p.Generators.Protobuf as a Cake Addin
#addin nuget:?package=Nethermind.Libp2p.Generators.Protobuf&version=3.28.0

// Install Nethermind.Libp2p.Generators.Protobuf as a Cake Tool
#tool nuget:?package=Nethermind.Libp2p.Generators.Protobuf&version=3.28.0                

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

  1. Add Google.Protobuf package
  2. Add Libp2p.Generators.Protobuf as analyzer dependency to you project
    ...
    <ItemGroup>
      ...
      <PackageReference Include="Libp2p.Generators.Protobuf" Version="3.25.1" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
    </ItemGroup>
    ...
    
  3. Make sure that Google.Protobuf version matches Libp2p.Generators.Protobuf project version
  4. 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.
  5. .cs file should be generated next to .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.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.28.0 99 9/11/2024
1.0.0-preview.32 51 9/9/2024
1.0.0-preview.30 49 9/6/2024
1.0.0-preview.29 77 10/3/2023
1.0.0-preview.28 81 9/7/2023
1.0.0-preview.27 80 9/5/2023
1.0.0-preview.6 50 6/25/2024
1.0.0-preview.5 54 6/21/2024
1.0.0-preview.4 56 2/29/2024
1.0.0-preview.3 68 10/18/2023
1.0.0-preview.2 66 9/1/2023
1.0.0-preview.1 87 8/28/2023