Enabling build validation

You can enable validation to occur during a build of a project.

Build validation occurs when you select either Build Project, Build All, Rebuild Project, or Rebuild All. These build options appear in a pop-up menu only if automatic builds are disabled. Each of the build commands starts an incremental build of the project or workspace. The incremental build validates the project using the validators that are enabled for the project. The incremental build also validates any projects that are referenced by the project being validated, using the validators that are enabled for each respective project. The rebuild commands start a full build (all previous build output is deleted and everything is recreated).

To enable build validation:

  1. In the Project Explorer view, right-click your project and select Properties.

  2. On the Validation page, select the Override validation preferences check box to override global preferences for this project.

  3. Ensure that the validators that you want to run are selected.

  4. Select the Run validation when you manually build <project_name> check box.

  5. Click OK.

 

Parent topic

Validating code in enterprise applications

 

Related tasks

Enabling automatic code validation
Disabling a validator
Overriding global validation preferences
Manually validating code
Selecting code validators