Skip to content

Instantly share code, notes, and snippets.

@xiangwan
Created May 28, 2012 10:27
Show Gist options
  • Save xiangwan/2818384 to your computer and use it in GitHub Desktop.
Save xiangwan/2818384 to your computer and use it in GitHub Desktop.
解决vs锁住文件
//项目名称上右键属性在预先生成事件中加入:
if exist "$(TargetPath).locked" del "$(TargetPath).locked"
if exist "$(TargetPath)" if not exist "$(TargetPath).locked" move "$(TargetPath)" "$(TargetPath).locked"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment