run-tests-on-os.yml: Always install the latest SDK to accept the command line parameters
diff --git a/build/azure-templates/run-tests-on-os.yml b/build/azure-templates/run-tests-on-os.yml
index 92c80fc..791f7e9 100644
--- a/build/azure-templates/run-tests-on-os.yml
+++ b/build/azure-templates/run-tests-on-os.yml
@@ -63,10 +63,10 @@
Get-ChildItem -Path $(System.DefaultWorkingDirectory)
- task: UseDotNet@2
- displayName: 'Use .NET sdk 5.0.100'
+ displayName: 'Use .NET Core sdk 2.1.807'
inputs:
- version: 5.0.100
- condition: and(succeeded(), contains('${{ parameters.framework }}', 'net5.'))
+ version: 2.1.807
+ condition: and(succeeded(), contains('${{ parameters.framework }}', 'netcoreapp2.'))
- task: UseDotNet@2
displayName: 'Use .NET Core sdk 3.1.301'
@@ -75,10 +75,9 @@
condition: and(succeeded(), contains('${{ parameters.framework }}', 'netcoreapp3.'))
- task: UseDotNet@2
- displayName: 'Use .NET Core sdk 2.1.807'
+ displayName: 'Use .NET sdk 5.0.100'
inputs:
- version: 2.1.807
- condition: and(succeeded(), contains('${{ parameters.framework }}', 'netcoreapp2.'))
+ version: 5.0.100
#- template: 'show-all-files.yml' # Uncomment for debugging