5
5
6
6
steps :
7
7
- task : PowerShell@2
8
- displayName : Install PS 7.1.1
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.1 /PowerShell-7.1.1 -win-x64.zip"
13
- $output = Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.1.1 -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.1 /"
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,18 @@ steps:
22
22
inputs :
23
23
targetType : inline
24
24
script : |
25
- $pwshPath= Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.1.1 /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 : ' Install DotNet 5 .0 SDK'
33
+ displayName : ' Install DotNet 6 .0 SDK'
34
34
inputs :
35
35
packageType : sdk
36
- version : 5 .0.x
36
+ version : 6 .0.100-preview.1
37
37
38
38
- task : DotNetCoreCLI@2
39
39
displayName : ' Build'
89
89
inputs :
90
90
command : custom
91
91
custom : msbuild
92
- arguments : ' tools\Az.Tools.Predictor\build.proj /target:"Package" /p:Configuration=Release /p:PowerShellCoreCommandPrefix="$(Pipeline.Workspace)\\PowerShell-7.1.1 \\pwsh.exe -NonInteractive -NoLogo -NoProfile -Command" '
92
+ 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" '
93
93
94
94
- task : PublishPipelineArtifact@0
95
95
displayName : ' Save artifacts'
0 commit comments