Visual studio binDebug… because it is being used by another process

xiaoxiao2021-02-28  91

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"

保存即可。

转载请注明原文地址: https://www.6miu.com/read-50181.html

最新回复(0)