本文介绍了VS2010抛出“无法复制文件" obj \ x86 \ Debug \ [file] .exe";因为找不到它."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写Windows Phone 8游戏,该游戏需要许多支持桌面应用程序:关卡编辑器等.由于我只有VS的快速版本,因此我正在使用Windows Phone 2010来创建这些版本(2012年未提供具有创建Windows应用程序的能力,我需要XNA.

I'm writing a Windows Phone 8 game which requires a number of support desktop applications: level editors etc. Since I only have express versions of VS, I'm using 2010 for Windows Phone to create these (2012 does not offer the ability to create Windows applications, and I need XNA).

最近,当我尝试构建时,出现了一个奇怪的错误:无法找到文件"obj \ x86 \ Debug \ LevelEditor.exe",因为找不到该文件."

Recently, I've been getting an odd error when I try to build: "Could not copy the file "obj\x86\Debug\LevelEditor.exe" because it was not found."

我尝试了许多解决方案,甚至可以完全重建解决方案,重新创建所有类文件,然后通过文本编辑器将代码从旧文件中复制粘贴进去-没什么用.

I tried a number of solutions, even going so far as to completely rebuild the solution, re-creating all the class files then copy-pasting the code in from the old files via text editor - nothing works.

这个错误似乎是完全虚假的,几乎就像我的项目中存在某种大小限制:在各种类中使用字符串常量似乎表明了这一点,因为我可以将一个字符的数量扩展到错误发生,然后在完全不同的类中减少另一个错误,该项目将再次生成.

This error appears to be completely spurious, almost as if there is some kind of size limitation on my project: playing around with string constants in various classes seems to point to this as I can extend the number of characters in one until the error occurs, then reduce another in a completely different class and the project will build again.

还有其他人看到过这种行为吗?并且有解决方案,因为它使我发疯!

Has anyone else seen this sort of behaviour? And is there a solution, as it's driving me nuts!

推荐答案

如上所述,Avast是问题所在.谢谢!

As said, Avast was the problem. Thanks!

这篇关于VS2010抛出“无法复制文件" obj \ x86 \ Debug \ [file] .exe";因为找不到它."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 06:46