Visual Studio 2013 上的 XNA 中缺少设备/模拟器选项 [英] Device / Emulator option missing in XNA on Visual Studio 2013
问题描述
注意:我已经查看了关于 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.
推荐答案
要在 Visual Studio 2013 中解决此问题:
To fix this issue in Visual Studio 2013:
- 确保您的 Visual Studio 2013 已关闭.
- 找到要在设备上运行的项目的 *.csproj 文件.
- 通过将原始 *.csproj 文件复制到某处来备份它.
在记事本中编辑文件.确保以下记录存在并设置为这些值:
- Make sure your Visual Studio 2013 is turned off.
- Locate the *.csproj file of the project you want to run on device.
- Backup the original *.csproj file by copying it somewhere.
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屋!