title: Error6 while trying to use sublime text to msbuild
body: <p>I'm trying to use msbuild with my sublime project.  I created the build file <a href="https://stackoverflow.com/questions/9646776/how-do-i-make-a-build-system-for-sublime-text-2-to-build-msbuild">suggested here</a> and the following is my project file</p>
  <pre><code>{
      &quot;folders&quot;:
      [
          {
              &quot;path&quot;: &quot;/W/MyOrg/MyApp&quot;,
                          &quot;folder_exclude_patterns&quot;: [&quot;_ReSharper.*&quot;, &quot;bin&quot;, &quot;obj&quot;]
          }
      ]
  }
  </code></pre>
  <p>I select the msbuild40 build system and hit <code>Build</code> and get the output:</p>
  <pre><code>[Error 6] The handle is invalid
  [Finished]
  </code></pre>
  <p>I'm not even sure if this is a python or an msbuild error. Which is it, how can I fix it, and whats a good way to troubleshoot this sort of stuff in the future?</p>
  <h3>Update</h3>
  <p>I tried updating my project to the following and using that build and still no dice</p>
  <pre><code>{
      &quot;folders&quot;:
      [
          {
              &quot;path&quot;: &quot;/W/MyOrg/MyApp&quot;,
              &quot;folder_exclude_patterns&quot;: [&quot;_ReSharper.*&quot;, &quot;bin&quot;, &quot;obj&quot;]
          }
      ],
      &quot;build_systems&quot;:
      [
          {
              &quot;name&quot;: &quot;msbuild&quot;,
              &quot;cmd&quot;: [&quot;c:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MSBuild.exe&quot;, &quot;w:\\MyOrg\\MyApp\\MyApp.sln&quot;]
          }
      ]
  }
  </code></pre>