无法复制文件“obj \Debug \ Project1.exe”到“bin \Debug \ Project1.exe”。无法找到该文件 [英] Unable to copy file "obj\Debug\Project1.exe" to "bin\Debug\Project1.exe".Could not find the file

查看:478
本文介绍了无法复制文件“obj \Debug \ Project1.exe”到“bin \Debug \ Project1.exe”。无法找到该文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好专家



我在C#中有一个项目,每次尝试编译项目时都会出现此错误:

(无法将文件obj\Debug\Project1.exe复制到bin \Debug \ Project1.exe。无法找到该文件。



已经尝试过干净的解决方案,关闭视觉工作室,但没有任何作用,错误仍然存​​在。



请帮助我。



先谢谢

Hello experts

I have a project in C# and I get this error every time I try to compile the project :
(Unable to copy file "obj\Debug\Project1.exe" to "bin\Debug\Project1.exe". .Could not find the file.

Already tried with clean solution,closing visual studio, but nothing works,the error still remains.

Please help me.

Thanks in Advance

推荐答案

清理解决方案,手动删除exe,.suo文件。

然后构建解决。确保没有任何错误。谢谢。
Clean the solution, manually delete the exe, .suo file.
then build the solution. Make sure there are not any bug. thanks.


确保您的程序的任何其他实例没有在您的系统上运行..使用任务管理器检查实例并关闭所有然后手动删除obj文件夹。然后清理解决方案,然后重新重建。
make sure that any other instance of your program is not running on your system..check the instance by using task manager and close all the instance .Then manually delete obj folder. then clen solution then rebuild again.


你有运行Avast!Antivirus吗?

然后排除你的构建p扫描后再试一次。



问候 - John Pool
Do you have Avast! Antivirus running?
Then exlude your build path from being scanned and try again.

Regards -- John Pool


这篇关于无法复制文件“obj \Debug \ Project1.exe”到“bin \Debug \ Project1.exe”。无法找到该文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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