Skip to content

Commit c451feb

Browse files
authored
Merge pull request #5752 from ghogen/skipped-builds
Add info on skipped projects
2 parents b374765 + 0f66f2e commit c451feb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/ide/how-to-exclude-projects-from-a-build.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@ For more information, see [Understand build configurations](../ide/understanding
4848

4949
7. On the menu bar, choose **Build** > **Rebuild Solution**.
5050

51+
## Skipped projects
52+
53+
Projects can be skipped during the build because they are not up-to-date or because they are excluded from the configuration. Visual Studio uses MSBuild to build your projects. MSBuild only builds a target if the output is older than the input, as determined by the file timestamps. To force a rebuild, use the command **Build** > **Rebuild Solution**.
54+
55+
In the **Build** pane of the **Output** window, Visual Studio reports the number of projects that were up to date, the number that built successfully, the number that failed, and the number that were skipped. The skipped count does not include projects that were not built because they were up-to-date. When projects are excluded from the active configuration, they are skipped during the build. In the build output, you see a message indicating that the project is skipped:
56+
57+
```output
58+
2>------ Skipped Build: Project: ConsoleApp2, Configuration: Debug x86 ------
59+
2>Project not selected to build for this solution configuration
60+
```
61+
62+
To find out why a project was skipped, note the active configuration (`Debug x86` in the previous example), and choose **Build** > **Configuration Manager**. You can view or change which projects are skipped for each configuration, as discussed in this article.
63+
5164
## See also
5265

5366
- [Understand build configurations](../ide/understanding-build-configurations.md)

0 commit comments

Comments
 (0)