Add MSBuild metadata to set LiteClient for client generation.

pull/19306/head
John Luo 6 years ago
parent bc4279ed55
commit 9b3c9e3635
  1. 1
      src/csharp/Grpc.Tools/build/_grpc/_Grpc.Tools.targets

@ -38,6 +38,7 @@
</Protobuf_Compile>
<Protobuf_Compile Condition=" '%(Protobuf_Compile.GrpcServices)' == 'Client' ">
<_GrpcOutputOptions>%(Protobuf_Compile._GrpcOutputOptions);no_server</_GrpcOutputOptions>
<_GrpcOutputOptions Condition=" '%(Protobuf_Compile.ClientType)' == 'LiteClient' ">%(Protobuf_Compile._GrpcOutputOptions);lite_client</_GrpcOutputOptions>
</Protobuf_Compile>
<Protobuf_Compile Condition=" '%(Protobuf_Compile.GrpcServices)' == 'Server' ">
<_GrpcOutputOptions>%(Protobuf_Compile._GrpcOutputOptions);no_client</_GrpcOutputOptions>

Loading…
Cancel
Save