Visual studio bin/Debug/… because it is being used by another process
2017-05-06 11:56
901 查看
http://stackoverflow.com/questions/11646047/error-cannot-access-file-bin-debug-because-it-is-being-used-by-another-proc;
解决办法:
右键项目-properties; 打开项目属性对话框
找到Build-event(构建事件) 在pre-build event command line中填写:
if exist "$(TargetPath).locked" del "$(TargetPath).locked"
if exist "$(TargetPath)" if not exist "$(TargetPath).locked" move "$(TargetPath)" "$(TargetPath).locked"
保存即可。
解决办法:
右键项目-properties; 打开项目属性对话框
找到Build-event(构建事件) 在pre-build event command line中填写:
if exist "$(TargetPath).locked" del "$(TargetPath).locked"
if exist "$(TargetPath)" if not exist "$(TargetPath).locked" move "$(TargetPath)" "$(TargetPath).locked"
保存即可。
相关文章推荐
- C# The process cannot access the file because it is being used by another process
- Solution: The process cannot access the file [filename] because it is being used by another process.
- 解决编译报错:Unable to copy file, because it is being used by another process.
- System.IO.IOException:The process cannot access the file 'XX.xml' because it is being used by another process. 解决方案
- FileStream:The process cannot access the file because it is being used by another process
- The process cannot access the file because it is being used by another process.
- 处理文件时遇到:The process cannot access the file because it is being used by another process.
- 【转】IIS: The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)
- C#使用Create创建文件后,报The Process cannot access the file because it is being used by another process的异常
- C#使用Create创建文件后,报The Process cannot access the file because it is being used by another process的异常
- Bug on Build Solution: "Unable to copy file... because it is being used by another process.."
- IIS:The process cannot access the file because it is being used by another process.
- the process cannot access the file because it is being used by another process
- the process cannot access the file because it is being used by another process
- Error: because it is being used by another process
- the process cannot access the file because it is being used by another process
- FileStream:The process cannot access the file because it is being used by another process
- 文件流操作,报“because it is being used by another process. ”错误解决
- the process cannot access the file because it is being used by another process
- the process cannot access the file because it is being used by another process