msbuild を実行して vc2010 プロジェクトをビルドすると、次のエラーが発生します。
error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found.
Confirm that the path in the <Import> declaration is correct, and that the file exists
on disk.
- msbuild は c:\Program File (x86)\MSBuild にあります
- HKLM\SOFTWARE\Wow6432Node\Microsoft\MSBuild\ToolVersions\V4.0 VCTargetsPath を $(MSBuildExtensionsPath32)\Microsoft.Cpp\v4.0\ に設定
- msbuild /verbosity:diag を実行すると、ビルドの開始時に環境として設定された MSBuildExtensionsPath32、MSBuildExtensionsPath64、MSBuildExtensionsPath が良好なシステムとして表示されます
- MSBuildExtensionsPath32、MSBuildExtensionsPath64、MSBuildExtensionsPath をシェルで環境変数として設定しても、ビルドの開始時に環境として表示されません。
試行された修正
- .net 4.5 をアンインストールし、.net 4.0 を修復しました
- システム変数で MSBuildExtensionsPath32、MSBuildExtensionsPath64、MSBuildExtensionsPath を設定します。
MSBuildExtensionsPath32 が正しく設定されていないようで、MSBuildExtensionsPath を設定しても役に立たない
SET MSBuildExtensionsPath="C:\Program Files\MSBuild"
この変数の適切な設定を妨げているものについて何か考えがあれば教えてください。