title: NuGet: references to assemblies in runtimes folder not added
body: <p>I have a project that targets two different operating systems/frameworks:</p>
  
  <ol>
  <li><code>net461</code> on Windows and </li>
  <li><code>netcoreapp2.0</code> on OSX</li>
  </ol>
  
  <p>I'm trying to figure out how to correctly package this for NuGet.  According to <a href="https://natemcmaster.com/blog/2016/05/19/nuget3-rid-graph/" rel="noreferrer">this post</a> I should be able to package them like this:</p>
  
  <pre><code>/runtimes/win/lib/net461/myassembly.dll
  /runtimes/osx/lib/netcoreapp2.0/myassembly.dll
  </code></pre>
  
  <p>By when I add the NuGet package to another project, the packaged assemblies aren't added as references to the target project.</p>
  
  <p>Then I read somewhere that you also need to add reference libraries to the <code>/ref</code> folder so I tried this:</p>
  
  <pre><code>/runtimes/win/lib/net461/myassembly.dll
  /runtimes/osx/lib/netcoreapp2.0/myassembly.dll
  /ref/net461/myassembly.dll
  /ref/netcoreapp2.0/myassembly.dll
  </code></pre>
  
  <p>In this case the assemblies get added as a reference to the target project and I can build it, but the required assemblies aren't copied to the output folder.</p>
  
  <p>The documentation on all this is extremely vague and I'm fairly lost.</p>
  
  <p>What am I missing?</p>
  
  <hr>
  
  <p>Associated NuGet Issue: <a href="https://github.com/NuGet/Home/issues/7316" rel="noreferrer">https://github.com/NuGet/Home/issues/7316</a></p>
  
  <hr>
  
  <p>Update: I've put together a <a href="https://bitbucket.org/toptensoftware/multitargettest" rel="noreferrer">sample project</a> that demonstrates what I'm trying to achieve.  In particular see the bottom of the readme, titled "NuGet Packaging".</p>