title: Visual Studio 2013: CL.exe exited with code -1073741515
body: <p>I have a <strong>fresh</strong> Windows 8.1 Pro x64 install with a <strong>fresh</strong> Visual Studio 2013 Pro.
  When trying to compile a project with Platform Toolset to <strong>Windows7.1SDK</strong> I'm getting</p>
  
  <pre><code>Error   1   error MSB6006: "CL.exe" exited with code -1073741515.   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.targets   57  5   MenuBrowser
  </code></pre>
  
  <p>I tried running the supplied "Windows SDK Configuration Tool" and besides getting an error about Visual Studio 2005 and 2008 not being installed I think it did its job.</p>
  
  <p>I tried manually editing the registry:</p>
  
  <pre><code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows
  </code></pre>
  
  <p>where I manually put <code>CurrentInstallFolder</code> as <code>C:\Program Files\Microsoft SDKs\Windows\v7.1\</code> and <code>CurrentVersion</code> as <code>7.1.7600.0.30514</code>. If I look at the project properties and click the different paths / variables in there -> more -> Macros, I can see that $(WindowsSdkDir) is correct.</p>
  
  <p>Any idea as to what I should try? Never ran into this problem on the old development computer with Windows 7 and VS 2012.</p>
  
  <p>L.E. as a note, if I try a new project with the v120 tools, it works, but I need the Windows7.1SDK tools.</p>