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

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

del "$(SolutionDir)..xxxxxxxxxxBuild*.*" /s /q
xcopy  "$(TargetDir)*.dll"  "$(SolutionDir)..xxxxxxxxxxBuild"   /s /e  /y /i
xcopy  "$(TargetDir)*.exe"  "$(SolutionDir)..xxxxxxxxxxBuild"   /s /e  /y /i

原文地址:https://www.cnblogs.com/atuo/p/6222499.html