Skip to content

Commit

Permalink
Try use newer version until Microsoft managed pipeline agents are upd…
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanLydall committed Sep 25, 2024
1 parent 3b21722 commit 502e90d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ steps:
fetchDepth: '1'
submodules: 'recursive'

# Try use newer version until Microsoft managed pipeline agents are updated:
# https://github.com/NuGet/Home/issues/13729#issuecomment-2372495471
- task: UseDotNet@2
displayName: 'Install latest .NET 8 SDK'
inputs:
includePreviewVersions: true
version: '8.x'
performMultiLevelLookup: true

- task: PowerShell@2
displayName: 'Imodspec validation'
inputs:
Expand Down Expand Up @@ -229,6 +238,9 @@ steps:
condition: and(succeeded(), in('True', variables.isMaster, variables.isDevelopment))
env:
DOTNET_NOLOGO: '1'
# Avoid issues when attempting to run on environment without older .NET runtime version available:
# https://learn.microsoft.com/en-us/dotnet/core/versions/selection#control-roll-forward-behavior
DOTNET_ROLL_FORWARD: 'LatestMajor'
inputs:
targetType: inline
pwsh: true
Expand Down

0 comments on commit 502e90d

Please sign in to comment.