编辑并继续在转换后的 VS 2008-2010 项目上损坏
我已经浏览了尽可能多的关于损坏的 EAC 的帖子,但仍然找不到解决方案。
我现在在Win7 64位上运行VS2010 Express,使用XNA4.0框架,我之前在安装了XNA3.1的32位XP上运行VS2008 Express。
对项目进行了转换,但 EAC 不起作用。给我这个错误: http://smars.se/misc/eac.jpg
这是调试版本,代码不是优化,x86 构建,我尝试清除所有 .user/.chachefile/.suo/bin/obj 文件夹。当我创建新项目时,EAC 起作用。但我仍然无法让它在我的项目中工作。
有什么想法吗?
I've looked through as many posts on broken EAC I can find but still can't find a solution.
I'm running VS2010 express on Win7 64bit now with XNA4.0 framework, I was running VS2008 express before on 32bit XP with XNA3.1 installed.
Did a conversion of the project, and EAC doesn't work. Gives me this error:
http://smars.se/misc/eac.jpg
It's the debug build, code is not optimized, x86 build, I've tried clearing all .user/.chachefile/.suo/bin/obj folders. When I create new projects EAC works. But I still can't get it working in my project.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我是否可以建议,简单地重新创建项目文件会更快、更容易,而不是尝试解决此问题?
如果您在文本编辑器中打开它们,则只需复制包含所有源文件的
即可。然后使用 XNA 4.0 模板创建一个新项目。编辑新项目文件并将源文件粘贴到
上。显然,您需要检查并重置默认命名空间、输出程序集名称等内容。
如果您想变得更聪明,您可以复制项目文件的更多部分。或者您甚至可以将损坏的项目文件与新的项目文件进行比较,以找出可能导致问题的原因。
Rather than trying to fix this, might I suggest that it would be quicker and easier to simply recreate your project file(s)?
If you open them up in a text editor, you can simply copy out the
<ItemGroup>
that has all your source files. Then create a fresh project with the XNA 4.0 template. Edit the new project file and paste over the<ItemGroup>
with your source files.Obviously you will need to go through and reset things like the default namespace, output assembly name, and so on.
If you wanted to get even cleverer you could copy more sections of the project file over. Or you could even diff the the broken project file with a fresh one to figure out what might be causing the problem.