Skip to content

Commit b43d3e0

Browse files
committed
Use PSResourceGetv3
Since OneBranch now has PowerShell 7.4 and the old commands are getting blocked.
1 parent f6d86ba commit b43d3e0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Diff for: .pipelines/vscode-powershell-Official.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,7 @@ extends:
101101
inputs:
102102
archiveFilePatterns: $(Pipeline.Workspace)/PowerShellEditorServices.zip
103103
destinationFolder: $(Build.SourcesDirectory)/modules
104-
- pwsh: |
105-
Register-PSRepository -Name CFS -SourceLocation "https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v2" -InstallationPolicy Trusted
106-
Install-Module -Repository CFS -Name Microsoft.PowerShell.PSResourceGet
107-
./tools/installPSResources.ps1 -PSRepository CFS
104+
- pwsh: ./tools/installPSResources.ps1 -PSRepository CFS
108105
displayName: Install PSResources
109106
- pwsh: Invoke-Build Build -Configuration $(BuildConfiguration)
110107
displayName: Build
@@ -163,10 +160,7 @@ extends:
163160
inputs:
164161
archiveFilePatterns: $(Pipeline.Workspace)/PowerShellEditorServices.zip
165162
destinationFolder: $(Build.SourcesDirectory)/modules
166-
- pwsh: |
167-
Register-PSRepository -Name CFS -SourceLocation "https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v2" -InstallationPolicy Trusted
168-
Install-Module -Repository CFS -Name Microsoft.PowerShell.PSResourceGet
169-
./tools/installPSResources.ps1 -PSRepository CFS
163+
- pwsh: ./tools/installPSResources.ps1 -PSRepository CFS
170164
displayName: Install PSResources
171165
- pwsh: Invoke-Build Test -Configuration $(BuildConfiguration)
172166
displayName: Run tests

0 commit comments

Comments
 (0)