Skip to content

Commit a7b07ff

Browse files
authored
Review and update. Add batch build. (#13204)
* Review and update. Add batch build * Tweak wording * Add link
1 parent ff9ceac commit a7b07ff

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

docs/ide/building-and-cleaning-projects-and-solutions-in-visual-studio.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Build and clean projects and solutions
33
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
55
ms.subservice: compile-build
66
ms.topic: conceptual
77
f1_keywords:
@@ -29,7 +29,9 @@ By using the procedures in this topic, you can build, rebuild, or clean all or s
2929
> [!NOTE]
3030
> 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**.
3131
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).
3335

3436
1. In **Solution Explorer**, choose or open the solution.
3537

@@ -70,6 +72,21 @@ By using the procedures in this topic, you can build, rebuild, or clean all or s
7072

7173
When this check box is cleared, all projects, their dependencies, and the solution files are built when you run any of the preceding commands.
7274

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+
7390
## To build only the selected Visual C++ project
7491

7592
Choose a C++ project, and then, on the menu bar, choose **Build** > **Project Only**, and one of the following commands:
Loading

0 commit comments

Comments
 (0)