title: Wix heat command exited with code 319 (-out parameter must specify a file path)
body: <p>I'm building an installer for my web app (.NET), using Wix v3.7 and Visual Studio 2012.</p>
  
  <p>To harvest my web project files I'm using heat, and my .wixproj looks like this:</p>
  
  <pre><code>&lt;Target Name="BeforeBuild"&gt;
      &lt;Exec Command=' "$(WiX)bin\heat.exe" project "..\Web \" -gg -g1 -cg PACKAGEFILES sreg -dr DEPLOYFOLDER -out "$(ProjectDir)Frags.wxs" '/&gt;
      &lt;ItemGroup&gt;
        &lt;Compile Include='Frags.wxs' /&gt;
      &lt;/ItemGroup&gt;
    &lt;/Target&gt;
  </code></pre>
  
  <p>I get the following errors when compiling:</p>
  
  <ul>
  <li>The '-out' or '-o' parameter must specify a file path.   File: heat.exe  </li>
  <li>The command " "C:\Program Files (x86)\WiX Toolset v3.7\bin\heat.exe" project "..\Web \" -gg -g1 -cg PACKAGEFILES sreg -dr DEPLOYFOLDER -out "C:\Users(...)\Server\Wix\Frags.wxs" " exited with code 319.      File: C:\Users(...)\Server\Wix\Wix.wixproj</li>
  </ul>
  
  <p>The (...) are added by me, for privacy concerns. The files paths do not exceed the limit.</p>
  
  <p>I've tried changing the quotes, different parameters, etc, but the error persists.</p>