关于在vs中添加生成命令时的注意事项

涉及到目录最好用双引号括起来,防止在目录含有空格或文字时发生错误。例如

del "$(SolutionDir)\..\xxxxxx\xxxx\Build\*.*" /s /q
xcopy  "$(TargetDir)*.dll"  "$(SolutionDir)\..\xxxxxx\xxxx\Build"   /s /e  /y /i
xcopy  "$(TargetDir)*.exe"  "$(SolutionDir)\..\xxxxxx\xxxx\Build"   /s /e  /y /i

posted @ 2016-12-26 15:33  mdgoogle  阅读(143)  评论(0编辑  收藏  举报