Skip to content

Commit 26e2c0a

Browse files
authored
[release/8.0] Install .NET 8 before running Publish Using Darc (#16266)
1 parent 6544413 commit 26e2c0a

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

eng/common/templates-official/job/publish-build-assets.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@ jobs:
152152
BARBuildId: ${{ parameters.BARBuildId }}
153153
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
154154

155+
# Darc is targeting 8.0, so make sure it's installed
156+
- task: UseDotNet@2
157+
inputs:
158+
version: 8.0.x
159+
155160
- task: AzureCLI@2
156161
displayName: Publish Using Darc
157162
inputs:

eng/common/templates-official/post-build/post-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ stages:
271271

272272
- task: NuGetAuthenticate@1
273273

274+
# Darc is targeting 8.0, so make sure it's installed
275+
- task: UseDotNet@2
276+
inputs:
277+
version: 8.0.x
278+
274279
- task: AzureCLI@2
275280
displayName: Publish Using Darc
276281
inputs:

eng/common/templates/job/publish-build-assets.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ jobs:
148148
BARBuildId: ${{ parameters.BARBuildId }}
149149
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
150150

151+
# Darc is targeting 8.0, so make sure it's installed
152+
- task: UseDotNet@2
153+
inputs:
154+
version: 8.0.x
155+
151156
- task: AzureCLI@2
152157
displayName: Publish Using Darc
153158
inputs:

eng/common/templates/post-build/post-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,11 @@ stages:
267267

268268
- task: NuGetAuthenticate@1
269269

270+
# Darc is targeting 8.0, so make sure it's installed
271+
- task: UseDotNet@2
272+
inputs:
273+
version: 8.0.x
274+
270275
- task: AzureCLI@2
271276
displayName: Publish Using Darc
272277
inputs:

0 commit comments

Comments
 (0)