View Single Post
  #2  
Old 09-27-2012, 09:43 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,025
There is a retry option (on the More tab), but it always retries if the step fails (any exit code). If you only want to retry on one particular exit code, you could:

1) Put the Make VS step in a loop
2) Mark the Make VS step to continue on failure, and in the vbld_StepDone event, if devenv/msbuild returned a non-zero exit code other than the problem mt.exe exit code, force the build to fail (overriding the continue on failure option)
3) After the Make VS step, add an Exit step to exit the loop if the exit code was not the problem exit code.

See the attached sample.
Attached Files
File Type: bld RetryCode.bld (2.0 KB, 842 views)
Reply With Quote