title: Importing .proto files from another project
body: <p>I have several contract projects that contains different protobuf files, but some of the message types have the same message  type like</p>
  <pre class="lang-protobuf prettyprint-override"><code>message user
  {
    Address address = 1
  }
  
  message Address 
  {
    ....
  }
  </code></pre>
  <p>I have now created a shared project and added an Address.proto file to it only containing</p>
  <pre class="lang-protobuf prettyprint-override"><code>syntax = &quot;proto3&quot;
  option csharp_namespace = &quot;shared.protos&quot;
  package AddressPackage
  message Address {....}
  </code></pre>
  <p>My problem is to figure out how to import it into the protos in my different contract projects.
  I have added the shared project as a reference, but everything else that I have tried from there has resultet in errors.</p>
  <p>I know that I need to use <code>import</code> just haven't figured out how to write the string.</p>
  <p><strong>Update</strong></p>
  <p>I'm using gRPC.tools nuget and all .proto files is set to protobuf compiler both</p>
  <p>The files structure is as following</p>
  <p>User.Contracts project</p>
  <ul>
  <li>Protos
  -- User.proto
  Shared project</li>
  <li>Protos
  -- Address.proto</li>
  </ul>
  <p>both projects is in it's own folder and those folders are placed next to each other.</p>
  <p>in the shared project it says</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;ItemGroup&gt;
    &lt;None Remove=&quot;Protos\Address.proto&quot; /&gt;
  &lt;/ItemGroup&gt;
  
  &lt;ItemGroup&gt;
    &lt;Protobuf Include=&quot;Protos\Address.proto&quot;&gt;
      &lt;CopyToOutputDirectory&gt;Always&lt;/CopyToOutputDirectory&gt;
    &lt;/Protobuf&gt;
  &lt;/ItemGroup&gt;
  </code></pre>
  <p>and in the user.contract is says</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;ItemGroup&gt;
    &lt;None Remove=&quot;Protos\User.proto&quot; /&gt;
  &lt;/ItemGroup&gt;
  
  &lt;ItemGroup&gt;
    &lt;Protobuf Include=&quot;Protos\User.proto&quot; /&gt;
  &lt;/ItemGroup&gt;
  </code></pre>
  <p>Thanks in advance.</p>