title: Cake NuGetPack Configuration
body: <p>I'm trying to create a NuGet package using a Cake script:</p>
  
  <pre><code>var configuration = Argument("configuration", "Release");
  
  var binDir = Directory("./bin") ;
  var nugetPackageDir = Directory("./artifacts");
  
  var nugetFilePaths = GetFiles("./**/*.csproj").Concat(GetFiles("./**/*.nuspec"));
  
  var nuGetPackSettings = new NuGetPackSettings
  {   
    BasePath = binDir + Directory(configuration),
    OutputDirectory = nugetPackageDir  
  };
  
  Task("NuGetPack")
    .Does(() =&gt; NuGetPack(nugetFilePaths, nuGetPackSettings));
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>========================================
  NuGetPack
  ========================================
  Executing task: NuGetPack
  Attempting to build package from 'SomeProject.csproj'.
  MSBuild auto-detection: using msbuild version '12.0' from 'C:\Program Files (x86)\MSBuild\12.0\bin'.
  Unable to find 'C:\DEV\SomeProject\bin\Debug\SomeProject.dll'. Make sure the project has been built.
  An error occured when executing task 'NuGetPack'.
  Error: NuGet: Process returned an error (exit code 1).
  </code></pre>
  
  <p>It searches the assembly in the <code>Debug</code> folder instead of the <code>Release</code> folder.
  How to set NuGetPack build configuration to Release in Cake?</p>