title: How can I resolve the error: "The command [...] exited with code 1"?
body: <p>I've read around many questions but I've not been able to find the right answer for me.</p>
  
  <p>As I try to compile a project in VS2012 I have this result:</p>
  
  <p>The command "....\tools\bin\nuget pack Packages\Lib.Html.nuspec -    OutputDirectory ....\bin\Zip\Packages -NoPackageAnalysis" exited with code 1.</p>
  
  <p>I looked for the line of code in my .csproj file, where the error should be, and there is:  </p>
  
  <pre><code>&lt;Exec Command="$(ProjectDir)..\..\tools\bin\nuget pack $(ProjectDir)Packages\Lib.Html.nuspec -OutputDirectory $(OutputPath)Packages -NoPackageAnalysis" /&gt;  
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>[EDIT] 
  Launching the Debug of that project and ignoring "building errors", I have a new alert:</p>
  
  <p>"Visual Studio cannot start debugging because the debug target '[project.exe path]' is missing.
  Please build the project and retry, or set OutputPath and AssemblyName properties appropriately to point at the correct location for the target assembly."</p>