title: How to include proto files from one project in another project
body: <p>I am not able to include protos present in Project A in a project B. The idea would be to have the protos with <code>GrpcServices=&quot;Server&quot;</code> in project A and in project B, of tests, include the same protos but, now, as <code>GrpcServices=&quot;Client&quot;</code></p>
  <p><code>ProjectA/Protos/Profile.proto</code></p>
  <pre><code>syntax = &quot;proto3&quot;;
  
  package profile;
  option csharp_namespace = &quot;ProjectA.Protos&quot;;
  import &quot;google/protobuf/empty.proto&quot;;
  
  service ProfileService {
    rpc Get(google.protobuf.Empty) returns (Profile);
  }
  
  message Profile {
    string profile_id = 1;
    string description = 2;
  }
  </code></pre>
  <p><code>ProjectA/Protos/User.proto</code></p>
  <pre><code>syntax = &quot;proto3&quot;;
  
  package user;
  option csharp_namespace = &quot;ProjectA.Protos&quot;;
  import &quot;google/protobuf/wrappers.proto&quot;;
  import &quot;Protos/Profile.proto&quot;;
  
  service UserService {
    rpc Get(google.protobuf.StringValue) returns (UserDetail);
  }
  
  message UserDetail {
    string id = 1;
    string name = 2;
    repeated profile .Profile profiles = 7;
  }
  </code></pre>
  <p>Project B .csproj (The test project)</p>
  <pre><code>&lt;ItemGroup&gt;
    &lt;Protobuf Include=&quot;..\ProjectA\Protos\*.proto&quot; GrpcServices=&quot;Client&quot; ProtoRoot=&quot;Protos&quot;&gt;
      &lt;Link&gt;Protos\*.proto&lt;/Link&gt;
    &lt;/Protobuf&gt;
  &lt;/ItemGroup&gt;
  </code></pre>
  <p>With these settings I always end up having this error return</p>
  <pre><code>error : File does not reside within any path specified using --proto_path (or -I).  You must specify a --proto_path which encompasses this file.  Note that the proto_path must be an exact prefix of the .proto file names -- protoc is too dumb to figure out when two paths (e.g. absolute and relative) are equivalent (it's harder than you think).
  </code></pre>