2017-05-05 11 views
0

.bat 파일을 사용하여 grpc .cs 파일을 생성하려하지만 messageGRPC.cs 파일이 생성되지 않습니다. 그러나 message.g.cs가 생성됩니다. 오류가없고 심지어 경로를 하드 코딩하고 동일한 결과를 사용하여 관리자 모드에서 명령 창을 실행하려고했습니다.gRPC가 생성되지 않음 * grpc.cs

다시 message.g.cs가 올바르게 생성되지만 messageGRPC.cs는 올바르게 생성되지 않습니다.

내 프로젝트에 NuGet의 Google.Protobuf, Google.Protobuf.Tools, Grpc, Grpc.Core 및 Grpc.Tools를 설치했습니다.

내가 잘못하고있는 것이 있습니까?

@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 variables 
set 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 

답변

1

같은 질문은 여기에 대답 https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/grpc-io/l6bZwTLbDb4/bYRBmx37AgAJ

우리가 모두 유래를 모니터링하고 메일 링리스트 grpc.io 두 번 게시물은 관리 부하를 증가 (동일한 질문을 두 번 게시 피하기 위해 노력하십시오, 그것은 아무튼 질문에 답할 확률이 더 높음).

+0

죄송합니다. 저는 여러분이 stackoverflow도 모니터링하고 있는지 몰랐습니다. – Que