无法将'obj\debug\ project.exe复制到bin\debug\project.exe [英] could not able to copy 'obj\debug\ project.exe to bin\debug\project.exe

查看:102
本文介绍了无法将'obj\debug\ project.exe复制到bin\debug\project.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们

我的项目中有两个问题。

Hi friends
I have two issue in my project.

1.Error143Could not copy "obj\Debug\LibrarySystem.exe" to "bin\Debug\LibrarySystem.exe". Exceeded retry count of 10. Failed.
2.Error144Unable to copy file "obj\Debug\LibrarySystem.exe" to "bin\Debug\LibrarySystem.exe". The process cannot access the file 'bin\Debug\LibrarySystem.exe' because it is being used by another process.



我试过添加以下内容构建事件。

如果存在$(TargetPath).lockeddel$(TargetPath).locked

如果不存在$(TargetPath).lockedmove $(TargetPath)$(TargetPath).locked



它对我有用一次。但下次会发生同样的错误。如何解决这个问题。


I have tried with add the following in the build event.
if exist "$(TargetPath).locked" del "$(TargetPath).locked"
if not exist "$(TargetPath).locked" move "$(TargetPath)" "$(TargetPath).locked"

it worked for me once. but next time same error occur. how can solve this problem.

推荐答案

(TargetPath).lockeddel
(TargetPath).locked" del "


(TargetPath).locked

如果不存在
(TargetPath).locked"
if not exist "


(TargetPath).lockedmove
(TargetPath).locked" move "


这篇关于无法将'obj\debug\ project.exe复制到bin\debug\project.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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