use fixed SDK version instead of latest (#854)

This commit is contained in:
Lucas Pimentel-Ordyna 2020-08-13 11:03:34 -04:00 committed by GitHub
parent ab1b1eb3af
commit 16f72c51a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 20 deletions

View File

@ -18,10 +18,11 @@ pr:
pool:
vmImage: ubuntu-18.04
variables:
buildConfiguration: Debug
publishOutput: $(System.DefaultWorkingDirectory)/src/bin/managed-publish
dotnetCoreSdkVersion: 3.1.x
dotnetCoreSdkVersion: 3.1.107
jobs:
@ -29,7 +30,7 @@ jobs:
steps:
- task: UseDotNet@2
displayName: install dotnet core sdk
displayName: install dotnet core sdk 3.1
inputs:
version: $(dotnetCoreSdkVersion)
@ -65,15 +66,12 @@ jobs:
strategy:
matrix:
netcoreapp2_1:
dotnetCoreSdkVersion: 2.1.x
publishTargetFramework: netcoreapp2.1
netcoreapp3_0:
dotnetCoreSdkVersion: 3.0.x
publishTargetFramework: netcoreapp3.0
netcoreapp3_1:
dotnetCoreSdkVersion: 3.1.x
publishTargetFramework: netcoreapp3.1
variables:
TestAllPackageVersions: true
@ -109,7 +107,7 @@ jobs:
steps:
- task: UseDotNet@2
displayName: install dotnet core sdk
displayName: install dotnet core sdk 3.1
inputs:
version: $(dotnetCoreSdkVersion)
@ -145,15 +143,12 @@ jobs:
strategy:
matrix:
netcoreapp2_1:
dotnetCoreSdkVersion: 2.1.x
publishTargetFramework: netcoreapp2.1
netcoreapp3_0:
dotnetCoreSdkVersion: 3.0.x
publishTargetFramework: netcoreapp3.0
netcoreapp3_1:
dotnetCoreSdkVersion: 3.1.x
publishTargetFramework: netcoreapp3.1
variables:
TestAllPackageVersions: true
@ -216,22 +211,22 @@ jobs:
steps:
- task: UseDotNet@2
displayName: install dotnet core sdk 2.1
displayName: install dotnet core runtime 2.1
inputs:
packageType: sdk
packageType: runtime
version: 2.1.x
- task: UseDotNet@2
displayName: install dotnet core sdk 3.0
displayName: install dotnet core runtime 3.0
inputs:
packageType: sdk
packageType: runtime
version: 3.0.x
- task: UseDotNet@2
displayName: install dotnet core sdk 3.1
inputs:
packageType: sdk
version: 3.1.x
version: $(dotnetCoreSdkVersion)
- task: NuGetToolInstaller@1
displayName: install nuget

View File

@ -14,7 +14,7 @@ schedules:
variables:
buildConfiguration: release
dotnetCoreSdkVersion: 3.1.x
dotnetCoreSdkVersion: 3.1.107
publishOutput: $(Build.SourcesDirectory)/src/bin/managed-publish
stages:
@ -35,7 +35,7 @@ stages:
steps:
- task: UseDotNet@2
displayName: install dotnet core sdk
displayName: install dotnet core sdk 3.1
inputs:
packageType: sdk
version: $(dotnetCoreSdkVersion)

View File

@ -11,6 +11,7 @@ trigger:
variables:
buildConfiguration: Debug
dotnetCoreSdkVersion: 3.1.107
jobs:
@ -41,7 +42,7 @@ jobs:
displayName: install dotnet core sdk 3.1
inputs:
packageType: sdk
version: 3.1.x
version: $(dotnetCoreSdkVersion)
- task: DotNetCoreCLI@2
displayName: dotnet build
@ -75,7 +76,7 @@ jobs:
displayName: install dotnet core sdk 3.1
inputs:
packageType: sdk
version: 3.1.x
version: $(dotnetCoreSdkVersion)
- task: DotNetCoreCLI@2
displayName: dotnet build