Skip to content

Instantly share code, notes, and snippets.

@xiangwan
Created May 28, 2012 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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