Skip to main content

This article explains how to set directives specifically for individual build types.

Problem:

Is there a way to set directives specifically for individual build types? In other words, how to set directives specifically for Release and others for Debug?

Resolution:

Here are the steps to accomplish this:
  1. Go to Project | Types of Build...
  2. Select Debug under Types.
  3. Click on the Change button.
  4. Add directives to Build directives field by leaving a space between them.
  5. Click on the OK button.
  6. Select Release under Types.
  7. Repeat steps 3 through 5.
  8. Click on the Close button.
Note: The above settings are per project.
Old KB# 13957