File tree 4 files changed +21
-17
lines changed
src/Microsoft.PowerShell.ConsoleGuiTools
4 files changed +21
-17
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ parameters:
27
27
variables :
28
28
system.debug : ${{ parameters.debug }}
29
29
BuildConfiguration : Release
30
- WindowsContainerImage : onebranch.azurecr.io/windows/ltsc2019 /vse2022:latest
30
+ WindowsContainerImage : onebranch.azurecr.io/windows/ltsc2022 /vse2022:latest
31
31
DOTNET_NOLOGO : true
32
32
DOTNET_GENERATE_ASPNET_CERTIFICATE : false
33
33
@@ -46,6 +46,11 @@ extends:
46
46
asyncSdl :
47
47
enabled : true
48
48
forStages : [build]
49
+ featureFlags :
50
+ EnableCDPxPAT : false
51
+ WindowsHostVersion :
52
+ Version : 2022
53
+ Network : Netlock
49
54
stages :
50
55
- stage : build
51
56
jobs :
@@ -71,11 +76,11 @@ extends:
71
76
inputs :
72
77
packageType : sdk
73
78
useGlobalJson : true
74
- - task : PowerShell@2
79
+ - pwsh : |
80
+ Register-PSRepository -Name CFS -SourceLocation "https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v2" -InstallationPolicy Trusted
81
+ Install-Module -Repository CFS -Name Microsoft.PowerShell.PSResourceGet
82
+ ./tools/installPSResources.ps1 -PSRepository CFS
75
83
displayName: Install PSResources
76
- inputs :
77
- pwsh : true
78
- filePath : tools/installPSResources.ps1
79
84
- pwsh : Invoke-Build -Configuration $(BuildConfiguration)
80
85
displayName : Build
81
86
- task : onebranch.pipeline.signing@1
Original file line number Diff line number Diff line change 1
1
{
2
2
"sdk" : {
3
- "version" : " 6.0.420 " ,
3
+ "version" : " 6.0.425 " ,
4
4
"rollForward" : " latestFeature" ,
5
5
"allowPrerelease" : false
6
6
}
Original file line number Diff line number Diff line change 16
16
17
17
<ItemGroup >
18
18
<PackageReference Include =" Nstack.Core" Version =" 1.1.1" />
19
- <PackageReference Include =" Terminal.Gui" Version =" 1.16.0 " />
20
- <PackageReference Include =" Microsoft.PowerShell.SDK" Version =" 7.2.19 " />
19
+ <PackageReference Include =" Terminal.Gui" Version =" 1.17.1 " />
20
+ <PackageReference Include =" Microsoft.PowerShell.SDK" Version =" 7.2.23 " />
21
21
</ItemGroup >
22
22
23
23
<ItemGroup >
Original file line number Diff line number Diff line change 1
1
# Copyright (c) Microsoft Corporation.
2
2
# Licensed under the MIT License.
3
+ param (
4
+ [ValidateSet (" PSGallery" , " CFS" )]
5
+ [string ]$PSRepository = " PSGallery"
6
+ )
3
7
4
- $ErrorActionPreference = ' Stop'
5
-
6
- Set-PSRepository - Name PSGallery - InstallationPolicy Trusted | Out-Null
7
- if ($PSVersionTable.PSVersion.Major -lt 6 ) {
8
- throw " The build script requires PowerShell 7!"
8
+ if ($PSRepository -eq " CFS" -and -not (Get-PSResourceRepository - Name CFS - ErrorAction SilentlyContinue)) {
9
+ Register-PSResourceRepository - Name CFS - Uri " https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v3/index.json"
9
10
}
10
11
11
- # TODO: Switch to Install-PSResource when CI uses PowerShell 7.4
12
- Install-Module - Name InvokeBuild - Scope CurrentUser
13
- Install-Module - Name platyPS - Scope CurrentUser
14
- Install-Module - Name Microsoft.PowerShell.PSResourceGet - Scope CurrentUser
12
+ Install-PSResource - Repository $PSRepository - TrustRepository - Name InvokeBuild
13
+ Install-PSResource - Repository $PSRepository - TrustRepository - Name platyPS
You can’t perform that action at this time.
0 commit comments