aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/csharp/RouteGuide/generate_protos.bat
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2018-08-20 17:26:22 +0200
committerGravatar Jan Tattermusch <jtattermusch@google.com>2018-08-20 17:50:23 +0200
commitc818320a3d0534a95055dba521b59553b6c7d6c3 (patch)
tree1abb362f9d6916fb47319750d5740504156a48e1 /examples/csharp/RouteGuide/generate_protos.bat
parentaf89e8c00e796f3398b09b7daed693df2b14da56 (diff)
upgrade dotnet examples to grpc1.14.1 and protobuf 3.6.1
Diffstat (limited to 'examples/csharp/RouteGuide/generate_protos.bat')
-rw-r--r--examples/csharp/RouteGuide/generate_protos.bat6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/csharp/RouteGuide/generate_protos.bat b/examples/csharp/RouteGuide/generate_protos.bat
index a8c9cb505a..f3a4382cf1 100644
--- a/examples/csharp/RouteGuide/generate_protos.bat
+++ b/examples/csharp/RouteGuide/generate_protos.bat
@@ -19,8 +19,10 @@ setlocal
@rem enter this directory
cd /d %~dp0
-set TOOLS_PATH=packages\Grpc.Tools.1.8.0\tools\windows_x86
+@rem packages will be available in nuget cache directory once the project is built or after "dotnet restore"
+set PROTOC=%UserProfile%\.nuget\packages\Google.Protobuf.Tools\3.6.1\tools\windows_x64\protoc.exe
+set PLUGIN=%UserProfile%\.nuget\packages\Grpc.Tools\1.14.1\tools\windows_x64\grpc_csharp_plugin.exe
-%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
+%PROTOC% -I../../protos --csharp_out RouteGuide ../../protos/route_guide.proto --grpc_out RouteGuide --plugin=protoc-gen-grpc=%PLUGIN%
endlocal