Name Date Size #Lines LOC

..--

Properties/H25-Apr-2025-289

build/H25-Apr-2025-658441

Common.csH A D25-Apr-20252.7 KiB7440

CommonPlatformDetection.csH A D25-Apr-20254.2 KiB13095

DepFileUtil.csH A D25-Apr-202513 KiB306160

GeneratorServices.csH A D25-Apr-20259.2 KiB240173

Grpc.Tools.csprojH A D25-Apr-20254.5 KiB8670

ProtoCompile.csH A D25-Apr-202529.1 KiB652363

ProtoCompilerOutputs.csH A D25-Apr-20253.8 KiB10144

ProtoReadDependencies.csH A D25-Apr-20252.7 KiB7940

ProtoToolsPlatform.csH A D25-Apr-20252.5 KiB7841

README.mdH A D25-Apr-20251.3 KiB2719

SourceLink.csproj.includeH A D25-Apr-2025547 159

implementation_notes.mdH A D25-Apr-202511.4 KiB223158

README.md

1# Grpc.Tools - Protocol Buffers/gRPC C# Code Generation Build Integration
2
3This package provides C# tooling support for generating C# code from `.proto` files in `.csproj` projects:
4* It contains protocol buffers compiler and gRPC plugin to generate C# code.
5* It can be used in building both grpc-dotnet projects and legacy c-core C# projects.
6
7The package is used to automatically generate the C# code for protocol buffer messages
8and gRPC service stubs from `.proto` files. These files:
9* are generated on an as-needed basis each time the project is built.
10* aren't added to the project or checked into source control.
11* are a build artifact usually contained in the `obj` directory.
12
13This package is optional. You may instead choose to generate the C# source files from
14`.proto` files by running the `protoc` compiler manually or from a script.
15
16## Simple example
17
18To 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.
19
20```xml
21<ItemGroup>
22    <Protobuf Include="Protos\greet.proto" />
23</ItemGroup>
24```
25
26For more complex examples and detailed information on how to use this package see: [BUILD-INTEGRATION.md](https://github.com/grpc/grpc/blob/master/src/csharp/BUILD-INTEGRATION.md)
27