C++ で記述された WinRT コンポーネント プロジェクトへの参照を含む Windows Phone 8 プロジェクトをビルドしようとしています。プロジェクトは VS2012 IDE からビルドされますが、MSBuild (c:\Windows\Microsoft.Net\Framework\v4.0.30319\MSBuild.exe) を使用してコマンド ラインからビルドされません。次のエラーがスローされます。
WindowsPhoneRuntimeComponent1\WindowsPhoneRuntimeComponent1.vcxproj(185,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WindowsPhone\v7.0\Microsoft.Cpp.WindowsPhone.7.0.targets" was not found. Confirm that
the path in the <Import> declaration is correct, and that the file exists on disk.
必要なターゲット ファイルから判断すると、WP7 用の WP8 プロジェクトをビルドしようとするものと思われます。この問題を回避する方法を知っている人はいますか、またはこの問題の解決策があれば教えてください。