title: Why does MSBuild look in C:\ for Microsoft.Cpp.Default.props instead of c:\Program Files (x86)\MSBuild? ( error MSB4019)
body: <p>When I run msbuild to build a vc2010 project I get the following error:</p>
  
  <pre><code>error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. 
  Confirm that the path in the &lt;Import&gt; declaration is correct, and that the file exists 
  on disk.
  </code></pre>
  
  <ul>
  <li>msbuild located c:\Program File (x86)\MSBuild </li>
  <li>HKLM\SOFTWARE\Wow6432Node\Microsoft\MSBuild\ToolVersions\V4.0 VCTargetsPath set to  $(MSBuildExtensionsPath32)\Microsoft.Cpp\v4.0\</li>
  <li>when running msbuild /verbosity:diag as good system shows MSBuildExtensionsPath32, MSBuildExtensionsPath64, MSBuildExtensionsPath set as <strong>Environment at start of build</strong></li>
  <li>setting MSBuildExtensionsPath32, MSBuildExtensionsPath64, MSBuildExtensionsPath set as environment variables in shell doesn't cause them to show as <strong>Environment at start of build</strong></li>
  </ul>
  
  <p><strong>Fixes Attempted</strong></p>
  
  <ul>
  <li>Uninstalled .net 4.5, repaired .net 4.0</li>
  <li>Set MSBuildExtensionsPath32, MSBuildExtensionsPath64, MSBuildExtensionsPath in system variables.</li>
  </ul>
  
  <p>It appears that MSBuildExtensionsPath32 isn't being set properly and setting MSBuildExtensionsPath doesn't help</p>
  
  <pre><code>SET MSBuildExtensionsPath="C:\Program Files\MSBuild"
  </code></pre>
  
  <p>Please let me know if you have any ideas what's blocking the proper setting of this variable.</p>