您的位置:首页 > 编程语言 > C#

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"

保存即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  visual studio c#
相关文章推荐