mirror of https://github.com/grpc/grpc.git
Add support for additional protoc arguments in Grpc.Tools (#25374)
Using "optional" presence tracking in proto3 (before protobuf 3.15) required the `--experimental_allow_proto3_optional` protoc option but there was no existing Grpc.Tools feature that would allow specifying these arguments. This commit adds an optional `Protobuf.AdditionalProtocArguments` option that allows you to specify arbitrary protoc arguments. For example: ``` <Protobuf Include="**\*.proto" CompileOutputs="true" AdditionalProtocArguments="--experimental_allow_proto3_optional" /> ``` Fixes #22975reviewable/pr25361/r4
parent
d861ececfe
commit
e46445cb5d
3 changed files with 25 additions and 0 deletions
Loading…
Reference in new issue