View Single Post
  #2  
Old 12-08-2009, 10:40 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,025
Add an Exit step following the Make VS step which builds only if the LASTSTEP_OUTPUT system macro contents indicate that the executable was built/rebuilt, for instance:

[InStr(vbld_AllMacros()("LASTSTEP_OUTPUT"), " -> ")]
is true

might work for VS 2008 when building with MSBuild since it outputs lines like

CSNETLib.2008 -> c:\Temp\VisBuildPro\VStudio\Executables\CSNETLib.d ll

when compiling (the output to look for will vary by version of VS and build tool being used [i..e, devenv, msbuild, etc.]), or check to see if the output executable(s) have changed since the Make VS step started (add a Set Macro step before the Make VS step to store [Now] in a START_TIME temp macro):

[DateDiff("%START_TIME%", vbld_FileDateModified("c:\project\output.exe")) > 0]
is true


http://www.kinook.com/VisBuildPro/Manual/exitaction.htm
http://www.kinook.com/VisBuildPro/Manual/buildrules.htm
http://www.kinook.com/VisBuildPro/Ma...xpressions.htm
Reply With Quote