PDA

View Full Version : Pass arguments to Visual Build


jnapier
01-05-2006, 02:50 PM
I have a continuous integration build setup and I have differrent scenarios of when a build might run. The build can run on a source code modification or at a specific time each night. I would like my visual build script to behave differently based on whether the build was initiated by a modification or was the nightly build.

Is there anyway to pass an argument to my build script?

kevina
01-05-2006, 02:52 PM
If you are invoking Visual Build via the command-line, simply pass appropriate macro values, which can be used in the .bld file as necessary.

See http://www.kinook.com/Forum/showthread.php?s=&threadid=1436 for a sample. If you are using the console app, change VisbuildPro.exe to VisbuildCmd.exe.

jnapier
01-05-2006, 04:05 PM
Thanks, thats what I was looking for.