title: Generating Nuget package on build does not include all dependencies
body: <p>The tree of my solution looks like :</p>
  <p>Project A</p>
  <ul>
  <li>References Nuget Package &quot;Some Package&quot;</li>
  </ul>
  <p>Project B</p>
  <ul>
  <li>References Project A</li>
  </ul>
  <p>When building, project B produces a package, let's call it <code>PackageB</code></p>
  <p>In ProjectB.csproj I have used the following:</p>
  <pre><code>   &lt;ProjectReference Include=&quot;ProjectA.csproj&quot;&gt;
          &lt;PrivateAssets&gt;All&lt;/PrivateAssets&gt;
      &lt;/ProjectReference&gt;
  </code></pre>
  <p>Meaning <code>PackageB</code>, in addition to <code>ProjecdtB.dll</code>, includes <code>ProjectA.dll</code></p>
  <p>However it does not include &quot;Some Package&quot;, so when I launch a client that references <code>PackageB</code>, I get a runtime error complaining that the dll contains in &quot;Some Package&quot; is missing.</p>
  <p>How  can I make sure &quot;Some Package&quot; is added as a depencency of <code>PackageB</code>. I'd like to do this in csproj, without relying on a nuspec file. Is this possible ?</p>
  <p><strong>[EDIT]</strong>
  In order to get ProjectA included in the PackageB, I also need to mention that I'm using the <a href="https://www.nuget.org/packages/Teronis.MSBuild.Packaging.ProjectBuildInPackage/" rel="nofollow noreferrer">Teronis.MSBuild.Packaging.ProjectBuildInPackage</a>.</p>