-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
1 changed file
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |