Share via


Cleaning Project Directories

Home Page (Projects)OverviewsHow Do I... TopicsNMAKE Reference

When you run the Clean command, Visual C++ deletes all intermediate files created during the build process, for example .obj and .pch files, as well as output files such as the .exe or .dll file. The ___location of these files corresponds to the ___location specified on the General tab of the Project Settings dialog box, under "Intermediate files" and "Output files".

To clean the active project

  • From the Build menu, choose Clean.

To clean a specific project

  1. From the FileView tab, select the project and click the right mouse button.

  2. From the shortcut menu, choose Clean (selection only).

  3. Cleaning a project also deletes files created as a result of running custom build rules.