title: Nuget pack for multiple frameworks
body: <p>I am trying to make nuget package targeting multiple frameworks. But it doesn't work.
  csproj file:</p>
  
  <pre><code>&lt;Project Sdk="Microsoft.NET.Sdk"&gt;
  &lt;PropertyGroup&gt;
     &lt;Configuration Condition=" '$(Configuration)' == '' "&gt;Debug&lt;/Configuration&gt;
     &lt;OutputType&gt;Library&lt;/OutputType&gt;
     &lt;TargetFrameworks&gt;net452;netstandard2.0&lt;/TargetFrameworks&gt;
     &lt;NuGetPackageImportStamp /&gt;
   &lt;/PropertyGroup&gt;
  </code></pre>
  
  <p></p>
  
  <p>running command:</p>
  
  <pre><code>C:\Repos\Random\TestStuff\.nuget\nuget pack "C:\Repos\Random\TestStuff\TestPackaging\TestPackaging.csproj"
  </code></pre>
  
  <p>It gives me error:</p>
  
  <p>Error NU5012: Unable to find 'bin\Debug\TestPackaging\bin\Debug\'. Make sure the project has been built.</p>
  
  <p>If I change config to:</p>
  
  <pre><code>&lt;Project Sdk="Microsoft.NET.Sdk"&gt;
  &lt;PropertyGroup&gt;
    &lt;Configuration Condition=" '$(Configuration)' == '' "&gt;Debug&lt;/Configuration&gt;
     &lt;OutputType&gt;Library&lt;/OutputType&gt;
     &lt;TargetFramework&gt;netstandard2.0&lt;/TargetFramework&gt;
     &lt;NuGetPackageImportStamp /&gt;
   &lt;/PropertyGroup&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>everythings works fine. What am I missing? Changing location where I am running it from makes no difference.</p>
  
  <p>EDIT:
  running command</p>
  
  <pre><code>C:\Repos\Random\TestStuff\.nuget\nuget pack "C:\Repos\Random\TestStuff\TestPackaging\TestPackaging.csproj" -build
  </code></pre>
  
  <p>gives different error:</p>
  
  <pre><code>Build succeeded.
  0 Warning(s)
  0 Error(s)
  
  Time Elapsed 00:00:00.50
  Packing files from 
  'C:\Repos\Random\TestStuff\TestPackaging\bin\Debug\TestPackaging\bin\Debug'.
  Could not find a part of the path 
  'C:\Repos\Random\TestStuff\TestPackaging\bin\Debug\TestPackaging\bin\Debug'.
  </code></pre>
  
  <p>same with nuspec file</p>