I'm struggling writing the right configuration for grpc imports.
So the .net solution structure is like:
\Protos\Common\common.proto
\Protos\Vehicle\car.proto
\CarMicroservice
Inside car.proto I have: import "common.proto"
What I want is the generated grpc code to be inside the project CarMicroservice.
Inside CarMicroservice.csproj I have written the path to the protos:
<Protobuf Include="common.proto" ProtoRoot="..\Protos\Common\" />
<Protobuf Include="car.proto" ProtoRoot="..\Protos\Vehicle\" />
But getting error: 'common.proto' no such file or directory
The question is: How do I correctly import common.proto inside the car.proto?
Note: I already looked at the similar issue, but couldn't make it work for my case
Importing .proto files from another project