The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) https://grpc.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
tony 82cdea3b88
[C#] Grpc.Tools - Remove TODOs for splitting package (#33581)
2 years ago
..
Properties
build [C#] Grpc.Tools - Remove TODOs for splitting package (#33581) 2 years ago
Common.cs
CommonPlatformDetection.cs Remove C# implementation (individual packages will continue to be maintained through v2.46.x patches or moved to grpc-dotnet) (#29225) 3 years ago
DepFileUtil.cs
GeneratorServices.cs
Grpc.Tools.csproj [C#] Grpc.Tools - Remove TODOs for splitting package (#33581) 2 years ago
ProtoCompile.cs Grpc.Tools: Parse warnings from libprotobuf (fix #27502) (#30371) 3 years ago
ProtoCompilerOutputs.cs
ProtoReadDependencies.cs
ProtoToolsPlatform.cs Use x86 protoc binaries on arm64 Windows (#32017) 2 years ago
README.md Rewrite Grpc.Tools BUILD-INTEGRATION.md docs (#32075) 2 years ago
SourceLink.csproj.include Remove C# implementation (individual packages will continue to be maintained through v2.46.x patches or moved to grpc-dotnet) (#29225) 3 years ago
implementation_notes.md Add internal documentation for Grpc.Tools MSBuild integration (#31784) 2 years ago

README.md

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