View Full Version : Differ MS VS no-update-needed
stefluik
12-08-2009, 06:16 AM
How can I stop the Visual Build Pro Build process, if there is no MS VS Build needable ? Because no changes to source code happened.
kinook
12-08-2009, 11:40 AM
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/Manual/scriptexpressions.htm
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.