Skip to content

Commit

Permalink
Don't install NET5 (#17281)
Browse files Browse the repository at this point in the history
Fixes: #17118

.NET 5 is available, by default, on all agents now.

I'll keep the file so we don't have to re-discover all the places we need to install dotnet the next time.
  • Loading branch information
pakrym authored Jan 4, 2021
1 parent 57e6616 commit d744401
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions eng/pipelines/templates/steps/install-dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core SDK'
condition: ne(variables['Agent.OS'], 'Windows_NT') # Windows supports MultiLevelLookup and doesn't need explicit framework installation
inputs:
useGlobalJson: true
performMultiLevelLookup: true
- task: UseDotNet@2
condition: ne(variables['Agent.OS'], 'Windows_NT') # Windows supports MultiLevelLookup and doesn't need explicit framework installation
displayName: 'Use .NET Core 2.1 runtime'
inputs:
packageType: runtime
version: "2.1.x"
# All required SDKs/runtimes are available on DevOps agents
steps: []
# Installation steps need to be uncommented when switching to a newer SDK that's not available on DevOps agents
#steps:
# - task: UseDotNet@2
# displayName: 'Use .NET Core SDK'
# inputs:
# useGlobalJson: true
# performMultiLevelLookup: true
# - task: UseDotNet@2
# condition: ne(variables['Agent.OS'], 'Windows_NT') # Windows supports MultiLevelLookup and doesn't need explicit framework installation
# displayName: 'Use .NET Core 2.1 runtime'
# inputs:
# packageType: runtime
# version: "2.1.x"

0 comments on commit d744401

Please sign in to comment.