@@ -7,7 +7,7 @@ parameters:
77 initSteps : [] # any steps to run before .NET global tools are installed
88 preBuildSteps : [] # any steps that need to run just before the main compilation starts
99 postBuildSteps : [] # any steps that need to run just after the main compilation ends
10- masterBranchName : ' master ' # the "master" branch that should be used - can be something other than "master"
10+ masterBranchName : ' main ' # the "master" branch that should be used - can be something other than "master"
1111 installAppleCertificates : ' true' # whether or not to install the Apple certificates and provisioning profiles
1212 submodules : false # whether or not to check out submodules
1313 areaPath : ' ' # the areaPath to log any issues
@@ -22,12 +22,13 @@ parameters:
2222 windowsImage : ' windows-latest' # the name of the Windows VM image
2323 mono : ' Latest' # the version of mono to use
2424 xcode : ' 12.3' # the version of Xcode to use
25- dotnet : ' 3.1.302' # the version of .NET Core to use
26- cake : ' 0.38.4' # the version of Cake to use
25+ dotnet : ' 5.0.203' # the version of .NET Core to use
26+ dotnetStable : ' 3.1.408' # the stable version of .NET Core to use
27+ cake : ' 0.38.5' # the version of Cake to use
2728 apiTools : ' 1.1.0-preview.1' # the version of the api-tools CLI to use
2829 xharness : ' 1.0.0-prerelease.20602.1'
2930 tools : [] # a list of any additional .NET Core tools needed
30- cakeTemplatesBranch : ' master ' # the branch of XamarinComponents that has the templates
31+ cakeTemplatesBranch : ' main ' # the branch of XamarinComponents that has the templates
3132 # build parameters
3233 buildType : ' basic' # the type of build: 'basic', 'manifest', 'directories', 'none'
3334 steps : [] # the steps to use when building, typically for 'none'
@@ -102,11 +103,19 @@ jobs:
102103 - bash : echo '##vso[task.setvariable variable=PATH;]'$PATH:$HOME/.dotnet/tools
103104 displayName : ' Add ~/.dotnet/tools to the PATH environment variable'
104105 condition : or(eq(variables['System.JobName'], 'macos'), eq(variables['System.JobName'], 'linux'))
106+ - task : UseDotNet@2
107+ displayName : ' Switch to the correct version of the .NET Core SDK'
108+ inputs :
109+ version : ${{ parameters.dotnetStable }}
110+ performMultiLevelLookup : true
111+ includePreviewVersions : true
112+ condition : ne('${{ parameters.dotnetStable }}', '')
105113 - task : UseDotNet@2
106114 displayName : ' Switch to the correct version of the .NET Core SDK'
107115 inputs :
108116 version : ${{ parameters.dotnet }}
109117 performMultiLevelLookup : true
118+ includePreviewVersions : true
110119 condition : ne('${{ parameters.dotnet }}', '')
111120 # custom init steps
112121 - ${{ parameters.initSteps }}
@@ -202,6 +211,7 @@ jobs:
202211 # the basic build
203212 - ${{ if eq(parameters.buildType, 'basic') }} :
204213 - pwsh : |
214+ Get-Content $MyInvocation.MyCommand.Definition
205215 dotnet cake ${{ parameters.cakeFile }} ${{ parameters.cakeExtraArgs }} `
206216 --gitpreviouscommit="$(GitLastSuccessfulCommit)" `
207217 --gitcommit="$(Build.SourceVersion)" `
@@ -224,6 +234,7 @@ jobs:
224234 Invoke-WebRequest -Uri $uri -OutFile "build-directories.cake"
225235 displayName: 'Download the cake script to build directory-based repositories'
226236 - pwsh : |
237+ Get-Content $MyInvocation.MyCommand.Definition
227238 $force = if ("$env:FORCEBUILD") { "$env:FORCEBUILD" } else { "${{ parameters.forceBuild }}" }
228239 $names = if ("$env:BUILDDIRECTORYNAMES") { "$env:BUILDDIRECTORYNAMES" } else { "${{ parameters.namesFilter }}" }
229240 $targets = if ("$env:BUILDDIRECTORYTARGETS") { "$env:BUILDDIRECTORYTARGETS" } else { "${{ parameters.targetsFilter }}" }
@@ -252,6 +263,7 @@ jobs:
252263 Invoke-WebRequest -Uri $uri -OutFile "build-manifest.cake"
253264 displayName: 'Download the cake script to build manifest-based repositories'
254265 - pwsh : |
266+ Get-Content $MyInvocation.MyCommand.Definition
255267 $force = if ("$env:FORCEBUILD") { "$env:FORCEBUILD" } else { "${{ parameters.forceBuild }}" }
256268 $names = if ("$env:BUILDMANIFESTNAMES") { "$env:BUILDMANIFESTNAMES" } else { "${{ parameters.namesFilter }}" }
257269 $targets = if ("$env:BUILDMANIFESTTARGETS") { "$env:BUILDMANIFESTTARGETS" } else { "${{ parameters.targetsFilter }}" }
0 commit comments