title: Packing NuGet projects compiled in release mode?
body: <p>Is there some way to make a NuGet package using code compiled in release mode? Or is there some reason I should only publish (make available locally, in this case) packages compiled in debug mode?</p>
  
  <p>Every time I call <code>nuget pack</code> from my project directory, where I have the nuspec file below, on code I have only compiled in release mode, it complains about not finding the DLL in the debug folder (<code>"\bin\Debug\SomeProject.dll"</code>). If I compile it in debug mode, those files are there and it packs them up as it should.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0"?&gt;
  &lt;package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"&gt;
      &lt;metadata&gt;
          &lt;id&gt;$id$&lt;/id&gt;
          &lt;version&gt;$version$&lt;/version&gt;
          &lt;authors&gt;$author$&lt;/authors&gt;
          &lt;owners&gt;$author$&lt;/owners&gt;
          &lt;iconUrl&gt;http://somewhere/project.png&lt;/iconUrl&gt;
          &lt;requireLicenseAcceptance&gt;false&lt;/requireLicenseAcceptance&gt;
          &lt;description&gt;$description$&lt;/description&gt;
      &lt;/metadata&gt;
  &lt;/package&gt;
  </code></pre>