aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/csharp/route_guide/generate_protos.bat
blob: 12be52c6806a36051ad77f2b90ca11e50ca3c0da (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 RouteGuide  ../../protos/route_guide.proto --grpc_out RouteGuide --plugin=protoc-gen-grpc=%TOOLS_PATH%\grpc_csharp_plugin.exe

endlocal