Using robocopy with Visual Studio 2010 Post-build and Pre-build events
问题 Robocopy outputs 1 upon success, unlike most programs that exit with 0 on success. Visual Studio (and MSBUILD) interprets exit code of 1 as an error. How can Robocopy be used in Visual Studio post- and pre-build events such that its failure and success are correctly identified by the build environment? Note: this is more or less a repost of this post. 回答1: MSBuild extensionpack contains a Robocopy task that you can use in your build process. Can this be a solution for you instead of VS pre