PDA

View Full Version : How can I set environment variables in a project for use in later steps of the build?


kinook
04-08-2003, 09:02 AM
Create a macro or a Set Macro (http://www.kinook.com/VisBuildPro/Manual/setmacroaction.htm) step action and check its Add to environment variables property -- Visual Build adds/updates that macro as an environment variable for all subsequent steps that are built. The Advanced.bld (http://www.kinook.com/VisBuildPro/Manual/advancedsample.htm) sample includes a section which demonstrates this. The sample also demonstrates how this can be accomplished via script code (useful when setting many variables at once).