Quantcast
Channel: MSBuild forum
Viewing all articles
Browse latest Browse all 2763

Trying to build a gRPC example. How to solve?

$
0
0

I tried to build a gRPC sample GreeterProtos using Visual Studio 2017, but it fails proceeding with the shell script:

Part of the .csproj file:

  <!-- Generate the code from all of the proto files -->
  <Target Name="GenProtos" BeforeTargets="BeforeBuild" Inputs="@(Proto)" Outputs="@(Generated)">
    <Message Text="Generating protos @(Proto)" Importance="High" />
    <!-- TODO: Run different command lines per OS. -->
    <Exec Command="$(ProjectDir)..\..\tools\gen_protos.sh" />
    <!-- Ensure all of the generated files are compiled. -->
    <ItemGroup Condition="@(Compile)" == ''">
      <Compile Include="generated\*.cs" />
    </ItemGroup>
  </Target>


Error:

Error MSB3073 The command "D:\BHiep\New Workspace\grpc-samples-dotnet-master\grpc-samples-dotnet-master\dotnet_core\Greeter\GreeterProtos\..\..\tools\gen_protos.sh" exited with code 9009.


Viewing all articles
Browse latest Browse all 2763