Skip to content

Commit b7e16c2

Browse files
authored
Clarify about condition evaluation
1 parent 929fb58 commit b7e16c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/msbuild/target-build-order.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ MSBuild determines the target build order as follows:
129129

130130
3. The `Condition` attribute of the target is evaluated. If the `Condition` attribute is present and evaluates to `false`, the target isn't executed and has no further effect on the build.
131131

132-
Other targets that list the conditional target in `BeforeTargets` or `AfterTargets` still execute in the prescribed order.
132+
Other targets that list the conditional target in `BeforeTargets` or `AfterTargets` still execute in the prescribed order, regardless of the result of the condition.
133133

134134
4. Before the target is executed or skipped, its `DependsOnTargets` targets are run, unless the `Condition` attribute is applied to the target and evaluates to `false`.
135135

0 commit comments

Comments
 (0)