aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/csharp/helloworld/generate_protos.bat
blob: aa3a77b288d2b0272ac735c3dfaabf0e34fb42a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
@rem Generate the C# code for .proto files

setlocal

@rem enter this directory
cd /d %~dp0

set TOOLS_PATH=packages\Grpc.Tools.0.14.0\tools\windows_x86

%TOOLS_PATH%\protoc.exe -I../../protos --csharp_out Greeter  ../../protos/helloworld.proto --grpc_out Greeter --plugin=protoc-gen-grpc=%TOOLS_PATH%\grpc_csharp_plugin.exe

endlocal