You can specify environment variables to use with your applications either at a project level or for a build configuration.
- Click
.
- To specify environment variables that apply to the entire project:
- Expand
.
- To specify environment variables that only apply to a build configuration:
- Expand
.
- Select
Build Configuration.
- Check
Enable configuration specific settings.
- Specify a variable to use with your project or build configuration:
- To manually add a variable:
- Click
Add.
This opens the
Add variable dialog box.
- In the
Variable field, type your variable name.
Note: The name must not be blank and must not contain the '
=' character.
- In the
Value field, type the variable value.
- Click
OK.
- To specify a script that contains the environment variables to use:
- In the
Environment script to execute field, click
Browse to navigate and select the script to use.
The script must contain the variables in the following format -
set
variable=value, and must not require user interaction.
- Click
OK.
Restriction: The script should not allow user interaction.
- Click
Apply.
- Click
OK.
Building the project adds the information about the variables to the application.
Note: Click
Restore Defaults to remove all variables or scripts from this page.