diff options
Diffstat (limited to 'examples/csharp/RouteGuide')
-rw-r--r-- | examples/csharp/RouteGuide/RouteGuide/RouteGuide.csproj | 8 | ||||
-rw-r--r-- | examples/csharp/RouteGuide/generate_protos.bat | 6 |
2 files changed, 8 insertions, 6 deletions
diff --git a/examples/csharp/RouteGuide/RouteGuide/RouteGuide.csproj b/examples/csharp/RouteGuide/RouteGuide/RouteGuide.csproj index 7419f1a277..e1c44ecf3c 100644 --- a/examples/csharp/RouteGuide/RouteGuide/RouteGuide.csproj +++ b/examples/csharp/RouteGuide/RouteGuide/RouteGuide.csproj @@ -9,10 +9,10 @@ </PropertyGroup> <ItemGroup> - <PackageReference Include="Google.Protobuf" Version="3.5.0" /> - <PackageReference Include="Google.Protobuf.Tools" Version="3.5.0" /> - <PackageReference Include="Grpc" Version="1.13.1" /> - <PackageReference Include="Grpc.Tools" Version="1.13.1" /> + <PackageReference Include="Google.Protobuf" Version="3.6.1" /> + <PackageReference Include="Google.Protobuf.Tools" Version="3.6.1" /> + <PackageReference Include="Grpc" Version="1.14.1" /> + <PackageReference Include="Grpc.Tools" Version="1.14.1" /> <PackageReference Include="Newtonsoft.Json" Version="9.0.1" /> </ItemGroup> 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 |