5
5
6
6
steps :
7
7
- task : PowerShell@2
8
- displayName : Install PS 7.1.0-preview.7
8
+ displayName : Install PS 7.2
9
9
inputs :
10
10
targetType : ' inline'
11
11
script : |
12
- $url = "https://github.com/PowerShell/PowerShell/releases/download/v7.1 .0-preview.7 /PowerShell-7.1 .0-preview.7 -win-x64.zip"
13
- $output = Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.1 .0-preview.7 -win-x64.zip"
12
+ $url = "https://github.com/PowerShell/PowerShell/releases/download/v7.2 .0-preview.3 /PowerShell-7.2 .0-preview.3 -win-x64.zip"
13
+ $output = Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.2 .0-preview.3 -win-x64.zip"
14
14
(New-Object System.Net.WebClient).DownloadFile($url, $output)
15
- $pwshPath= Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.1 .0-preview.7 /"
15
+ $pwshPath= Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.2 .0-preview.3 /"
16
16
Expand-Archive -Path $output -DestinationPath $pwshPath
17
17
$pwshFullPath = Convert-Path $pwshPath
18
18
Write-Host $pwshFullPath
@@ -22,18 +22,19 @@ steps:
22
22
inputs :
23
23
targetType : inline
24
24
script : |
25
- $pwshPath= Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.1 .0-preview.7 /pwsh.exe"
25
+ $pwshPath= Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.2 .0-preview.3 /pwsh.exe"
26
26
$command = "`$PSVersionTable `
27
27
Install-Module platyPS -Force -Confirm:`$false -Scope CurrentUser `
28
28
Install-Module PowerShellGet -Force -Confirm:`$false -Scope CurrentUser -SkipPublisherCheck `
29
29
Install-Module Az -Repository PSGallery -RequiredVersion 3.0.0 -Confirm:`$false -Scope CurrentUser -AllowClobber -Force"
30
30
Invoke-Command -ScriptBlock { param ($pwshPath, $command) & $pwshPath -Command $command } -ArgumentList $pwshPath, $command
31
31
32
32
- task : UseDotNet@2
33
- displayName : ' Use .NET Core sdk '
33
+ displayName : ' Install DotNet 6.0 SDK '
34
34
inputs :
35
- packageType : sdk
36
- version : 5.0.100-rc.1.20452.10
35
+ packageType : ' sdk'
36
+ version : ' 6.0.x'
37
+ includePreviewVersions : true
37
38
38
39
- task : DotNetCoreCLI@2
39
40
displayName : ' Build'
@@ -42,6 +43,12 @@ steps:
42
43
custom : msbuild
43
44
arguments : ' tools\Az.Tools.Predictor\build.proj /target:"Clean;Build" /p:Configuration=Release'
44
45
46
+ - task : UseDotNet@2
47
+ displayName : ' Install DotNet 2.1 Runtime for Signing'
48
+ inputs :
49
+ packageType : ' runtime'
50
+ version : ' 2.1.x'
51
+
45
52
- task : EsrpCodeSigning@1
46
53
displayName : ' Signing'
47
54
inputs :
83
90
inputs :
84
91
command : custom
85
92
custom : msbuild
86
- arguments : ' tools\Az.Tools.Predictor\build.proj /target:"Package" /p:Configuration=Release /p:PowerShellCoreCommandPrefix="$(Pipeline.Workspace)\\PowerShell-7.1 .0-preview.7 \\pwsh.exe -NonInteractive -NoLogo -NoProfile -Command" '
93
+ arguments : ' tools\Az.Tools.Predictor\build.proj /target:"Package" /p:Configuration=Release /p:PowerShellCoreCommandPrefix="$(Pipeline.Workspace)\\PowerShell-7.2 .0-preview.3 \\pwsh.exe -NonInteractive -NoLogo -NoProfile -Command" '
87
94
88
95
- task : PublishPipelineArtifact@0
89
96
displayName : ' Save artifacts'
0 commit comments