Skip to content

Commit 819d5fd

Browse files
committed
Revert "Remove AfterTargets to workaround xbuild bug"
This reverts commit 1c96771. After this change, cloud build numbers were no longer set automatically. I'm not sure why I thought this change was good without offering an alternative way for these targets to be automatically invoked. Fixes #110
1 parent 1a8282c commit 819d5fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Nerdbank.GitVersioning.NuGet/build/NerdBank.GitVersioning.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787

8888
<Target Name="SetCloudBuildVersionVars"
8989
DependsOnTargets="GetBuildVersion"
90+
AfterTargets="GetBuildVersion"
9091
Condition=" '@(CloudBuildVersionVars)' != '' ">
9192
<Nerdbank.GitVersioning.Tasks.SetCloudBuildVariables
9293
CloudBuildVersionVars="@(CloudBuildVersionVars)">
@@ -99,6 +100,7 @@
99100

100101
<Target Name="SetCloudBuildNumberWithVersion"
101102
DependsOnTargets="GetBuildVersion"
103+
AfterTargets="GetBuildVersion"
102104
Condition=" '$(CloudBuildNumber)' != '' ">
103105
<Nerdbank.GitVersioning.Tasks.SetCloudBuildVariables
104106
CloudBuildNumber="$(CloudBuildNumber)">

0 commit comments

Comments
 (0)