How to: Set Environment Variables for Projects
Use the Environment or Merge Environment project settings, which are available from the <Projectname> Property Pages dialog box, to set up environment variables for projects. For more information, see Project Settings for a C++ Debug Configuration.
To set environment variables for a project
Open the <Projectname> Property Pages dialog box. For details, see How to: Open Project Property Pages.
Expand the Configuration Properties node.
Click the Debugging node to open the debugging property page.
Modify the Environment or Merge Environment project settings.
Click OK to accept any modified project settings and close the <Projectname> Property Pages dialog box.
, but I can't use it to set the working directory $(MY_API)\Bin, or the include directories.
- 12/12/2011
- afolaby2000
, but I can't use it to set the working directory $(MY_API)\Bin, or the include directories.
- 12/12/2011
- afolaby2000
use
NAME=VALUE
not
NAME = VALUE
- 3/3/2011
- dr_eck
Syntax is NAME=VALUE. Thus, to prepend "C:\Program Files\CrankCase\DLLS" to the PATH:
- PATH=C:\Program Files\Crankcase\DLLS;%PATH%
Macros such as $(OutDir) and $(TargetDir) may also be used--see "Macros for Build Commands and Properties" for others.
Naturally, syntax errors fail silently--intended environment modifications after the syntax error have no effect.
- 5/26/2010
- Multicollinearity
- 5/26/2010
- Multicollinearity
