Grpc.Tools 2.56.2

Grpc.Tools - Protocol Buffers/gRPC C# Code Generation Build Integration

This package provides C# tooling support for generating C# code from .proto files in .csproj projects:

  • It contains protocol buffers compiler and gRPC plugin to generate C# code.
  • It can be used in building both grpc-dotnet projects and legacy c-core C# projects.

The package is used to automatically generate the C# code for protocol buffer messages and gRPC service stubs from .proto files. These files:

  • are generated on an as-needed basis each time the project is built.
  • aren't added to the project or checked into source control.
  • are a build artifact usually contained in the obj directory.

This package is optional. You may instead choose to generate the C# source files from .proto files by running the protoc compiler manually or from a script.

Simple example

To add a .proto file to a project edit the project’s .csproj file and add an item group with a <Protobuf> element that refers to the .proto file, e.g.

<ItemGroup>
    <Protobuf Include="Protos\greet.proto" />
</ItemGroup>

For more complex examples and detailed information on how to use this package see: BUILD-INTEGRATION.md

Showing the top 20 packages that depend on Grpc.Tools.

Packages Downloads
Grpc.AspNetCore
gRPC meta-package for ASP.NET Core
14
Grpc.AspNetCore
gRPC meta-package for ASP.NET Core
13
Grpc.AspNetCore
gRPC meta-package for ASP.NET Core
12

.NET Framework 4.5

  • No dependencies.

.NET Standard 1.3

  • No dependencies.

Version Downloads Last updated
2.70.0 11 03/05/2025
2.65.0 11 10/02/2024
2.62.0 11 02/28/2024
2.61.0 12 02/09/2024
2.58.0 9 09/22/2023
2.56.2 11 08/06/2023
2.52.0 11 06/11/2023
2.51.0 20 10/07/2023
2.34.0 12 06/19/2023