c++ - 错误 : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v11.0\Microsoft.Windows.UI.Xaml.Cpp.targets" was not found

标签 c++ visual-studio-2012 windows-phone-8 cocos2d-x

我正在尝试在 Windows Phone 8 上构建一个 Cocos2D-X 项目。我能够在模拟器上成功运行该应用程序,但是当我尝试在设备上运行它时,出现以下错误:

error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v11.0\Microsoft.Windows.UI.Xaml.Cpp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

有没有人遇到过这个错误。我正在使用 Visual Studio Express 2012。我该如何解决这个问题。提前致谢。

最佳答案

如果您还安装了 Visual Studio (Express) 2013,请将其删除并仅使用 Visual Studio Express 2012。

在此处查看一些详细信息: http://support.microsoft.com/kb/2862142

我遇到了完全相同的问题。我在同一台 Windows 8.1 计算机上同时使用 Visual Studio Express 2012 for Windows Phone 和 Visual Studio Express 2013 for Windows Desktop。我卸载了 Visual Studio Express 2013 for Windows Desktop 并安装了 Microsoft Visual Studio Express 2012 for Windows Desktop,现在我没有问题了,我在真实设备上成功运行了应用程序。所以,只使用 2012 版本,它应该可以工作。

关于c++ - 错误 : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v11.0\Microsoft.Windows.UI.Xaml.Cpp.targets" was not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22506169/

相关文章:

c# - 如何在 App.xaml 文件的 Application.Resources 中组合 LocalizedStrings 和 ResourceDictionary 标签

android - 我可以如何处理我的应用程序中的自定义表情符号?

c++ - 在 googletest 或 cppunit 下移动参数化测试

c++ - 进程在内存/Win32 调试 API 中的真实起始地址

c++ - 函数重载的类模板声明

c# - 具有 JSON 反序列化功能的 Windows Phone 8 MVVM

c++ - 平衡二叉搜索树实现

c++ - visual studio 如何取消构建?

c - 如何在 Visual Studio 中创建 C(而非 C++)控制台应用程序

javascript - 将模型属性作为参数传递给 javascript 函数时 Razor View 中的语法错误