title: Why does dotnet build and build in visual studio produce different output?
body: <p>I am building a project which produces a nuget package.
  Configuration for the nuget package is in my csproj file. E.g. I have </p>
  
  <pre><code>&lt;GeneratePackageOnBuild&gt;true&lt;/GeneratePackageOnBuild&gt;
  </code></pre>
  
  <p>I also have assets which I want to include in the nuget package
  To include them I have this in my csproj file</p>
  
  <pre><code>&lt;ItemGroup&gt;
    &lt;_PackageFiles Include="$(OutputPath)\clidriver\**"&gt;
      &lt;BuildAction&gt;None&lt;/BuildAction&gt;
      &lt;PackagePath&gt;\build\clidriver\&lt;/PackagePath&gt;
    &lt;/_PackageFiles&gt;
  &lt;/ItemGroup&gt;
  </code></pre>
  
  <p>When I build from visual studio, assets are nicely included in the nuget package produced.
  However when I use dotnet.exe to build, assets are not included.</p>
  
  <p>Why this difference?</p>
  
  <p>And is there a trick to make dotnet.exe also include my assets?</p>