gpt4 book ai didi

visual-studio - 无法将 "obj\Debug\{project}.dll"复制到 "bin\{project}.dll"

转载 作者:行者123 更新时间:2023-12-04 05:55:01 24 4
gpt4 key购买 nike

最近,当我尝试运行我的项目时,Visual Studio Express 2013 for web 经常抛出此错误,我发现的唯一解决方法是退出并重新启动 Visual Studio 或(有时)完全重新启动 Windows。什么会导致这样的事情?

完整的错误转储

Error   19  Could not copy "obj\Debug\HobbsEventsMobile.dll" to "bin\HobbsEventsMobile.dll". Exceeded retry count of 10. Failed.    HobbsEventsMobile
Error 20 Unable to copy file "obj\Debug\HobbsEventsMobile.dll" to "bin\HobbsEventsMobile.dll". The process cannot access the file 'bin\HobbsEventsMobile.dll' because it is being used by another process. HobbsEventsMobile

最佳答案

通过转到项目属性(右键单击解决方案资源管理器中的项目,然后选择“属性”选项),选择“构建事件”选项卡,在项目中创建预构建操作。添加此代码:

if exist "$(TargetPath).locked" del "$(TargetPath).locked"
if not exist "$(TargetPath).locked" move "$(TargetPath)" "$(TargetPath).locked"

https://social.msdn.microsoft.com/Forums/en-US/5b71eb06-5047-483d-8fd3-b75c102d41e9/unable-to-copy-from-objdebug-to-bindebug?forum=Vsexpressinstall&prof=required

关于visual-studio - 无法将 "obj\Debug\{project}.dll"复制到 "bin\{project}.dll",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23503509/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com