PDA

View Full Version : How can I tell which VBP is running?


Dave_Novak
06-27-2006, 08:24 AM
I would like to have some build steps conditional based upon which VBP is running -- the GUI or the CMD-line version. Is there a way to do this?

I see system macros for VISBUILD (GUI) and VISBUILDCMD (CMD), but I don't know how to tell which is running.

kinook
06-27-2006, 09:25 AM
[Application.Context = vbldContextGUI]
is true

or

[Application.Context = vbldContextCommandLine]
is true

http://www.visualbuild.com/Manual/contextproperty.htm
http://www.visualbuild.com/Manual/scriptexpressions.htm

Dave_Novak
06-27-2006, 09:26 AM
Excellent -- thanks!