Does your .proto file contain any service definitions (as opposed to just protobuf messages)? If not, no *Grpc.cs file should be generated (as there are no services that gRPC could use).
On Tue, May 9, 2017 at 12:50 PM, Alquin Cook <[email protected]> wrote: > I am trying to generate grpc .cs files using a .bat file, but the > messageGRPC.cs file does not get generated. However, the message.g.cs > *DOES* get created. There are no errors and I even tried hard coding the > paths and running the command window in administrator mode with the same > results. > > Again the message.g.cs does get generated correctly, but the > messageGRPC.cs does not. I have set > > > --grpc_out="%PROJ_ROOT%"\gRPC and --plugin=protoc-gen-grpc=" > %PLUGIN_DIR%"\grpc_csharp_plugin.exe > > > In my Visual Studio 2015 project I have installed Google.Protobuf, > Google.Protobuf.Tools, Grpc, Grpc.Core, and Grpc.Tools from NuGet. > > Is there anything I'm doing wrong? > > > @echo off > cd %~dp0 > :: Display Current Working Directory used for debugging:: echo Current > Directory = %CD% > set PROJ_ROOT=%CD% set ROOT_DIR=%CD% > :: Display Solution Root Directory used for debugging:: echo Root Directory = > %ROOT_DIR% > :: Set path variablesset SRC_DIR=%ROOT_DIR%\Common\Messages > set > PLUGIN_DIR=%ROOT_DIR%\<project>\packages\Grpc.Tools.1.3.0\tools\windows_x64 > set DST_DIR=%ROOT_DIR%\Common\Messages\proto3 > :: debugging > echo plug_in_dir = "%PLUGIN_DIR%" > > echo Started compiling .proto messages using protoc > version"%PLUGIN_DIR%"\protoc.exe --version > :: code is on one line. it's wrapped here for readability > "%PLUGIN_DIR%"\protoc.exe -I "%SRC_DIR%" --proto_path="%SRC_DIR%" > --csharp_opt=file_extension=.g.cs --csharp_out="%DST_DIR%" > "%SRC_DIR%"\message.proto > --grpc_out="%PROJ_ROOT%"\gRPC > --plugin=protoc-gen-grpc="%PLUGIN_DIR%"\grpc_csharp_plugin.exe > > cd %PROJ_ROOT% > > echo Completed compiling .proto messages > > -- > You received this message because you are subscribed to the Google Groups " > grpc.io" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/grpc-io. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/grpc-io/029bd1ea-d2c0-46df-8cff-6f2371b96664%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/029bd1ea-d2c0-46df-8cff-6f2371b96664%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CACF4M0TB2Xi2WECWMk-A5%2BSO1LUZf9TvkLBy%3DNVf_TH6sT4A%2BA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME Cryptographic Signature
