Selecting the Startup Project in Microsoft Visual Studio*
To choose the target in the Solution Explorer, specify the startup project:
Right-click a project's name.
From the context menu, select Set as Startup Project.
The selected startup project's name now appears in bold.
Selecting the Configuration in Visual Studio
To select the Release or Debug configuration, do the following:
From the Build menu, select Configuration Manager.
From the drop-down list under Active solution configuration, select Release or Debug.
Click Close.
Selecting Build Settings Using Properties
After you select the Release or Debug configuration, specify the build settings for the target configuration. To specify the build settings for the selected startup project:
In the Solution Explorer, either choose Project> Properties or right-click the startup project name and select Properties.
Navigate to and select the appropriate project property in the left pane. For example, many project properties are specific to the C/C++ or Fortran language in use.
For the selected property, select or specify the appropriate value in the right pane.
Repeat the process of selecting the property in the left pane, and selecting or specifying its value in the right pane.
After you have set or checked the build options, click OK.
The build settings needed for project properties are described in the Build Settings help topic for the language in use. For example, the target executable should contain full debug information. For the Correctness tool, using a Debug configuration with no optimization is recommended. For the Survey and Suitability tools, a Release build with moderate optimization with limited inlining produces the best results.
Building the Target in Visual Studio
Once you have selected the startup project, the configuration, and specified the build options using properties, build the target executable. For example, do one of the following:
Select the project (or Solution) to build using the Build menu.
Right-click the name of the project or solution and select Build from the context menu.