These commands apply only to the C++ project that you chose, without building, rebuilding, cleaning, or linking any project dependencies or solution files. To build only the selected Visual C++ projectĬhoose a C++ project, and then, on the menu bar, choose Build > Project Only, and one of the following commands: When this check box is cleared, all projects, their dependencies, and the solution files are built when you run any of the preceding commands. When you choose Build > Build Solution ( Ctrl+ Shift+ B), the entire solution is built. When this check box is selected, only the current startup project and its dependencies are built when you choose Debug > Start ( F5) or Debug > Start Without Debugging ( Ctrl+ F5). Select the Only build startup projects and dependencies on Run check box. The Build and Run > Projects and Solutions > Options dialog box opens. In the Options dialog box, expand the Projects and Solutions node, and then choose the Build and Run page. To build only the startup project and its dependencies On the menu bar, choose Build, and then choose either Build ProjectName or Rebuild ProjectName.Ĭhoose Build ProjectName to build only those project components that have changed since the most recent build.Ĭhoose Rebuild ProjectName to "clean" the project and then build the project files and all project components.
In Solution Explorer, choose or open the project. With only the project and component files left, new instances of the intermediate and output files can then be built. The Build command becomes Build Solution when a solution includes more than one project.Ĭhoose Rebuild Solution to "clean" the solution and then build all project files and components.Ĭhoose Clean Solution to delete any intermediate and output files.