Skip to content

Instantly share code, notes, and snippets.

@PierreRochard
Last active September 22, 2018 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PierreRochard/bfaca537a1b8f72eba866bf8400bdea8 to your computer and use it in GitHub Desktop.
Save PierreRochard/bfaca537a1b8f72eba866bf8400bdea8 to your computer and use it in GitHub Desktop.
gRPC Windows C# Command

From https://grpc.io/docs/quickstart/csharp.html C:\Users\pierre.nuget\packages\grpc.tools\1.14.1\tools\windows_x64\protoc.exe -I./protos .\protos\helloworld.proto --csharp_out .\csharp\Helloworld\Greeter\ --grpc_out .\csharp\Helloworld\Greeter\ --plugin=protoc-gen-grpc=C:\Users\pierre.nuget \packages\grpc.tools\1.14.1\tools\windows_x64\grpc_csharp_plugin.exe

From https://grpc.io/docs/tutorials/basic/csharp.html C:\Users\pierre.nuget\packages\grpc.tools\1.14.1\tools\windows_x64\protoc.exe -I.\protos --csharp_out .\csharp\RouteGuide\RouteGuide --grpc_out .\csharp\RouteGuide\RouteGuide .\protos\route_guide.proto --plugin=protoc-gen-grpc=C:\Users\pierre.nuget\packages\grpc.tools\1.14.1\tools\windows_x64\grpc_csharp_plugin.exe

For LND gRPC:

  1. git clone https://github.com/protocolbuffers/protobuf
  2. git clone https://github.com/googleapis/googleapis
  3. git clone https://github.com/lightningnetwork/lnd
  4. C:\Users\pierre\.nuget\packages\grpc.tools\1.14.1\tools\windows_x64\protoc.exe -I.\googleapis -I.\protobuf\src -I.\lnd\lnrpc rpc.proto --csharp_out .\ --grpc_out .\ --plugin=protoc-gen-grpc=C:\Users\pierre\.nuget\packages\grpc.tools\1.14.1\tools\windows_x64\grpc_csharp_plugin.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment