title: "Nuget pack" seems to ignore BasePath parameter
body: <p>I am trying to create a NuGet package using our TFS 2013 build. I basically followed <a href="http://ihadthisideaonce.com/2014/02/24/nuget-like-a-pro-the-msbuild-way/" rel="nofollow">THIS</a> steps and locally everything works fine.<br>
  But our build does not use the default output directories and that seems to crash the <code>nuget pack</code> command.<br>
  On my local machine everything is builded into <code>SOLUTION/PROJECT/bin/Release</code>, but the TFS Build uses <code>BUILD/Sources/SOLUTION/PROJECT</code> for the sources and <code>BUILD/Binaries/Release</code> as its output directory. Running the build I get the following log/error:</p>
  
  <blockquote>
    <p>BuildPackage:<br>
     "D:\BUILD\Sources\SOLUTION\.nuget\NuGet.exe" pack "D:\BUILD\Sources\SOLUTION\PROJECT\PROJECT.csproj" -Properties "Configuration=Release;Platform=AnyCPU" -NonInteractive -OutputDirectory "D:\BUILD\Binaries\Release" -symbols -NoPackageAnalysis -BasePath "D:\BUILD\Binaries\Release"
      Attempting to build package from 'PROJECT.csproj'.  </p>
    
    <p>D:\BUILD\Sources\SOLUTION\.nuget\NuGet.targets(133,5): error : Unable to find 'D:\BUILD\Sources\SOLUTION\PROJECT\bin\Release\PROJECT.dll'. Make sure the project has been built.</p>
  </blockquote>
  
  <p>I then added the <code>-BasePath "$(TargetDir)"</code> to the <code>BuildCommand</code> in <code>NuGet.targets</code>, but still no change:</p>
  
  <pre><code>&lt;BuildCommand&gt;$(NuGetCommand) pack "$(ProjectPath)" -Properties "Configuration=$(Configuration);Platform=$(Platform)" $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols -NoPackageAnalysis -BasePath "$(TargetDir)"&lt;/BuildCommand&gt;
  </code></pre>
  
  <p><strong>How can I tell NuGet to load the correct files using TFS?</strong></p>
  
  <p><em>UPDATE:</em><br>
  I found a workaround: If I set the build output path of the project to the same "relative path" as used by our TFS build it works...<br>
  But that can't be the solution, right?</p>