title: How to copy files to output directory from a referenced NuGet package in .NET Core csproj?
body: <p>I'm trying to use <a href="https://www.nuget.org/packages/PhantomJS/" rel="noreferrer">PhantomJS NuGet package</a> in .NET core csproj application. But I think it is not possible using new <code>PackageReference</code> syntax for NuGet. </p>
  
  <p>When I reference the PhantomJS package like this:</p>
  
  <pre><code>&lt;PackageReference Include="PhantomJS" Version="2.1.1"&gt;
    &lt;IncludeAssets&gt;all&lt;/IncludeAssets&gt;
  &lt;/PackageReference&gt;
  </code></pre>
  
  <p>It does not do anything when I run <code>dotnet build</code>. </p>
  
  <p>I'd expect it to copy the files inside PhantomJS package to the output directory (or anywhere in the project) so I could use the binary file provided by the PhantomJS package.</p>
  
  <p>Is there another way to copy the contents of PhantomJS NuGet package to the output directory with MSBuild?</p>