aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/csharp/helloworld/generate_protos.bat
blob: 99f81a7d821cee97fefde556e27326e0148852be (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.13.1\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