I followed the "hello world" grpc tutorial to create a grpc server and client project in .net core (3.0). Everything worked very well. When i walked through the steps of adding the .proto file to the client project, i wondered if there is a way to avoid copying the file and instead add the servers .proto file as link the client project.
From the docs on how to add the proto file to the client:
- Create a Protos folder in the gRPC client project.
- Copy the Protos\greet.proto file from the gRPC Greeter service to the gRPC client project.
the copied file is then added to the client .csproj like this:
<ItemGroup>
<Protobuf Include="Protos\greet.proto" GrpcServices="Client" />
</ItemGroup>
Is it possible to add the .proto file from the server project as a link to the client?