Насколько я могу судить, мне нужно вручную сгенерировать C# код с использованием протокола, поэтому я использую эту команду:
Код: Выделить всё
protoc --proto_path=. --csharp_out=grpc .\greet.proto --grpc_out=grpc --plugin=protoc-gen-grpc="C:\users\foo\.nuget\packages\grpc.tools\0.5.0\tools\grpc_csharp_plugin.exe"
Код: Выделить всё
static readonly Marshaller __Marshaller_HelloRequest = Marshallers.Create((arg) => arg.ToByteArray(), global::Greet.HelloRequest.ParseFrom);
Код: Выделить всё
'HelloRequest' does not contain a definition for 'ParseFrom'
Код: Выделить всё
static readonly Method __Method_Prepare = new Method(
MethodType.Unary,
"Prepare",
__Marshaller_PrepareRequest,
__Marshaller_PrepareResponse);
Код: Выделить всё
There is no argument given that corresponds to the required parameter 'responseMarshaller' of 'Method
.Method(MethodType, string, string, Marshaller, Marshaller)'
Подробнее здесь: https://stackoverflow.com/questions/793 ... ot-compile
Мобильная версия