Skip to content

Commit 2c06cb9

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/visualstudio-docs-pr (branch live)
2 parents aa7ae79 + 9b49e70 commit 2c06cb9

File tree

4 files changed

+30
-7
lines changed

4 files changed

+30
-7
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

docs/index.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
title: Visual Studio product family documentation
77
description: Explore Visual Studio product documentation for the Visual Studio IDE for Windows and Mac, Visual Studio Code and App Center, GitHub Codespaces, and subscriptions.
88
ms.topic: hub-page
9-
ms.date: 11/13/2023
9+
ms.date: 10/3/2024
1010
searchScope: []
1111
titleSuffix: ""
1212
ms.author: ghogen
@@ -53,7 +53,7 @@ productDirectory:
5353
- title: GitHub Copilot
5454
imageSrc: ./media/copilot-icon.svg
5555
links:
56-
- url: /visualstudio/ide/ai-assisted-development-visual-studio
56+
- url: /visualstudio/ide/visual-studio-github-copilot-extension
5757
text: About Copilot in Visual Studio 2022
5858
- url: https://code.visualstudio.com/docs/editor/github-copilot
5959
text: About Copilot in Visual Studio Code
@@ -73,5 +73,3 @@ productDirectory:
7373
text: Azure Dev Tunnels docs
7474
- url: https://code.visualstudio.com/docs/remote/codespaces/
7575
text: GitHub Codespaces with Visual Studio Code
76-
- url: /appcenter
77-
text: App Center docs

docs/msbuild/msbuild-conditions.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ MSBuild supports a specific set of conditions that can be applied wherever a `Co
3434
|()|Grouping mechanism that evaluates to `true` if expressions contained inside evaluate to `true`.|
3535
|`$if$ ( %expression% ), $else$, $endif$`|Checks whether the specified `%expression%` matches the string value of the passed custom template parameter. If the `$if$` condition evaluates to `true`, then its statements are run; otherwise, the `$else$` condition is checked. If the `$else$` condition is `true`, then its statements are run; otherwise, the `$endif$` condition ends expression evaluation.<br /><br /> For examples of usage, see [Visual Studio project/item template parameter logic](https://stackoverflow.com/questions/6709057/visual-studio-project-item-template-parameter-logic).|
3636

37-
The operator `And` has higher precedence than `Or`, but for clarity, we recommend that you use parentheses when you use multiple Boolean operators to make the order of evaluation explicit. If you don't, MSBuild gives warning MSB4130.
37+
The `Condition` element is a single string, and so any strings that are used in the expression, including around property values, need to be enclosed with a single-quote. Spaces between operators are allowed and commonly used for readability, but they're not required.
38+
39+
To use the Boolean `And` and `Or` operators, specify operands inside the `Condition` element's string value, as in the following example:
40+
41+
```xml
42+
Condition="'$(Configuration)' == 'Debug' And '$(MSBuildProjectExtension)' == '.csproj'"
43+
```
44+
45+
You can chain the Boolean operators. Operator `And` has higher precedence than `Or`, but for clarity, we recommend that you use parentheses when you use multiple Boolean operators to make the order of evaluation explicit. If you don't, MSBuild gives warning MSB4130.
3846

3947
You can use string methods in conditions, as shown in the following example, in which the [TrimEnd()](/dotnet/api/system.string.trimend) function is used to compare only the relevant part of the string, to differentiate between .NET Framework and .NET Core target frameworks.
4048

0 commit comments

Comments
 (0)