Visual Studio 2013 上的 XNA 中缺少设备/模拟器选项 [英] Device / Emulator option missing in XNA on Visual Studio 2013

查看:35
本文介绍了Visual Studio 2013 上的 XNA 中缺少设备/模拟器选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

注意:我已经查看了关于 stackoverflow 的所有 XNA/VS 2013 相关帖子,但没有发现一次提到这个问题.

我遵循了各种指南并在 Visual Studio 2013 下安装了 XNA Game Studio 4.0.一切正常,我可以打开现有项目,甚至创建新项目.只有一个小问题:我缺少将项目运行/调试到设备/模拟器的选项.相反,我在使用后只有默认的开始"选项可用,我收到一条错误消息,说我无法运行项目类型库.

I have followed various guides and installed XNA Game Studio 4.0 under Visual Studio 2013. All works well, I can open my existing projects and even create new projects. There’s just one little problem: I’m missing the option to RUN / DEBUG the project to Device / Emulator. Instead, I only have default "Start" option available after using which I get an error message saying I cannot run the project type Library.

我使用的是 Visual Studio 2013 Ultimate.

I’m using Visual Studio 2013 Ultimate.

http://tinypic.com/r/95sx84/5

推荐答案

要在 Visual Studio 2013 中解决此问题:

To fix this issue in Visual Studio 2013:

  1. 确保您的 Visual Studio 2013 已关闭.
  2. 找到要在设备上运行的项目的 *.csproj 文件.
  3. 通过将原始 *.csproj 文件复制到某处来备份它.
  4. 在记事本中编辑文件.确保以下记录存在并设置为这些值:

  1. Make sure your Visual Studio 2013 is turned off.
  2. Locate the *.csproj file of the project you want to run on device.
  3. Backup the original *.csproj file by copying it somewhere.
  4. Edit the file in Notepad. Make sure that the following records are present and set to these values:

<ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<SilverlightApplication>true</SilverlightApplication>

  • 保存更改并打开您的解决方案.项目类型已更改,现在应该可以在 RUN 命令中正确显示设备"项.

  • Save the changes and open your solution. The type of the project was changed and it should now correctly display the "Device" item in the RUN command.

    注意:在某些情况下,可能还需要删除解决方案 *.SUO 文件才能使此修复程序起作用.

    Note: In some instances it might be also necessary to delete the solution *.SUO file in order for this fix to work.

    这篇关于Visual Studio 2013 上的 XNA 中缺少设备/模拟器选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆