涉及到目录最好用双引号括起来,防止在目录含有空格或文字时发生错误。例如
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
时间: 2024-10-29 19:09:39