|
1 | 1 | ---
|
2 | 2 | title: Build and clean projects and solutions
|
3 | 3 | description: Build, rebuild, or clean some of your projects or project items, or all of your projects, in your Visual Studio project solution.
|
4 |
| -ms.date: 10/17/2023 |
| 4 | +ms.date: 10/3/2024 |
5 | 5 | ms.subservice: compile-build
|
6 | 6 | ms.topic: conceptual
|
7 | 7 | f1_keywords:
|
@@ -29,7 +29,9 @@ By using the procedures in this topic, you can build, rebuild, or clean all or s
|
29 | 29 | > [!NOTE]
|
30 | 30 | > The UI in your edition of Visual Studio might differ from what this topic describes, depending on your active settings. To change your settings, for example to **General** or **Visual C++** settings, choose **Tools** > **Import and Export Settings**, and then choose **Reset all settings**.
|
31 | 31 |
|
32 |
| -## To build, rebuild, or clean an entire solution |
| 32 | +## To build, rebuild, or clean a solution |
| 33 | + |
| 34 | +Use this procedure to build the solution in the current configuration (for example, `Debug` or `Release`). If you want to build multiple configurations at once, see [Batch build](#batch-build). |
33 | 35 |
|
34 | 36 | 1. In **Solution Explorer**, choose or open the solution.
|
35 | 37 |
|
@@ -70,6 +72,21 @@ By using the procedures in this topic, you can build, rebuild, or clean all or s
|
70 | 72 |
|
71 | 73 | When this check box is cleared, all projects, their dependencies, and the solution files are built when you run any of the preceding commands.
|
72 | 74 |
|
| 75 | +## Batch build |
| 76 | + |
| 77 | +When you build using **Build solution** or **Build project** options, Visual Studio builds the current configuration. You can use the batch build command to build multiple configurations in one operation. |
| 78 | + |
| 79 | +From the menu bar, choose **Build** > **Batch build**. The **Batch build** dialog box appears. |
| 80 | + |
| 81 | +:::image type="content" source="media/building-and-cleaning-projects-and-solutions/batch-build.png" border="false" alt-text="Screenshot of the Batch build dialog box."::: |
| 82 | + |
| 83 | +Select the desired projects and configurations and use the buttons to build, rebuild, or clean. The build operations start immediately, and all the output appears in the **Output** window. |
| 84 | + |
| 85 | +The selections you made are remembered the next time you open the **Batch build** dialog box. |
| 86 | + |
| 87 | +> [!NOTE] |
| 88 | +> Batch build is not available for all project types. See [Build multiple configurations simultaneously](how-to-build-multiple-configurations-simultaneously.md). |
| 89 | +
|
73 | 90 | ## To build only the selected Visual C++ project
|
74 | 91 |
|
75 | 92 | Choose a C++ project, and then, on the menu bar, choose **Build** > **Project Only**, and one of the following commands:
|
|
0 commit comments