|
1 | 1 | ---
|
2 |
| -title: "Build multiple configurations" |
3 |
| -description: Build most types of projects with multiple, or even all, of their build configurations with one IDE action in Visual Studio. |
4 |
| -ms.date: 05/13/2020 |
| 2 | +title: Build Multiple Configurations With One Request |
| 3 | +description: Build multiple or all configurations of a project in Visual Studio by making a single request with the Batch Build option. |
| 4 | +ms.date: 06/25/2025 |
5 | 5 | ms.subservice: compile-build
|
6 | 6 | ms.topic: how-to
|
7 | 7 | author: ghogen
|
8 | 8 | ms.author: ghogen
|
9 | 9 | manager: mijacobs
|
| 10 | +#customer intent: As a developer, I want to build multiple or all configurations of my project in Visual Studio, so I can use a single request to complete the task. |
10 | 11 | ---
|
| 12 | + |
11 | 13 | # Build multiple configurations in a single build request
|
12 | 14 |
|
13 |
| -You can build most types of projects with multiple, or even all, of their build configurations with one IDE action by using the **Batch Build** dialog box. However, you can't build the following types of projects in multiple build configurations at the same time: |
| 15 | +Most project types in Visual Studio support building multiple or all configurations of the project with a single action (**Build** > **Batch Build**). However, three project types have restrictions that don't permit building multiple configurations simultaneously: |
| 16 | + |
| 17 | +- Windows 8.x Store apps built for Windows with JavaScript |
| 18 | +- All Visual Basic projects |
| 19 | +- CMake projects |
| 20 | + |
| 21 | +If your solution includes a project type that has build restrictions, the **Build** > **Batch Build** option isn't available. For more information, see [Understand build configurations](../ide/understanding-build-configurations.md). |
| 22 | + |
| 23 | +## Build multiple configurations for a project |
| 24 | + |
| 25 | +The following steps show how to build multiple configurations of a project at the same time: |
14 | 26 |
|
15 |
| -1. Windows 8.x Store apps built for Windows using JavaScript. |
| 27 | +1. In Visual Studio, select **Build** > **Batch Build**, or enter the **Ctrl**+**Q** keyboard shortcut, and search for _Batch Build_. |
16 | 28 |
|
17 |
| -2. All Visual Basic projects. |
| 29 | +1. In the **Batch Build** dialog, select the check box in the **Build** column for each configuration you want to build for the project. |
18 | 30 |
|
19 |
| -3. CMake projects. |
| 31 | + You can also [edit the build configurations for all projects in a solution](#edit-build-configurations-for-a-solution) and build them from the **Batch Build** dialog. |
20 | 32 |
|
21 |
| -If a solution contains any project of those two project types, then **Batch Build** is not available for that solution. In that case, the command doesn't appear on the **Build** menu. |
| 33 | +1. Select **Build** or **Rebuild**. Visual Studio builds all selected configurations of your project. |
22 | 34 |
|
23 |
| - For more information about build configurations, see [Understand build configurations](../ide/understanding-build-configurations.md). |
| 35 | +## Edit build configurations for a solution |
24 | 36 |
|
25 |
| -## To build a project in multiple build configurations |
| 37 | +The following steps show how to edit or create build configurations for a solution: |
26 | 38 |
|
27 |
| -1. On the menu bar, choose **Build** > **Batch Build**. Or, press **Ctrl**+**Q** to open the search box, and search for `Batch Build`. |
| 39 | +1. Select **Build** > **Configuration Manager**. |
28 | 40 |
|
29 |
| -2. In the **Build** column, select the check boxes for the configurations in which you want to build a project. |
| 41 | +1. In the **Configuration Manager** dialog, edit the configurations for the solution. |
30 | 42 |
|
31 |
| - > [!TIP] |
32 |
| - > To edit or create a build configuration for a solution, choose **Build** > **Configuration Manager** on the menu bar to open the **Configuration Manager** dialog box. After you have edited a build configuration for a solution, choose the **Rebuild** button in the **Batch Build** dialog box to update all build configurations for the projects in the solution. |
| 43 | +1. In the **Batch Build** dialog, select **Rebuild**. |
33 | 44 |
|
34 |
| -3. Choose the **Build** or **Rebuild** buttons to build the project with the configurations that you specified. |
| 45 | +Visual Studio builds all configurations for the projects in the solution. |
35 | 46 |
|
36 | 47 | ## Related content
|
37 | 48 |
|
|
0 commit comments