Skip to content

Commit 601666f

Browse files
Fix RestorePsesModules to use Save-PSResource (#2219)
1 parent 1ee7adb commit 601666f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PowerShellEditorServices.build.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ namespace Microsoft.PowerShell.EditorServices.Hosting
120120

121121
task RestorePsesModules -If (-not (Test-Path "module/PSReadLine") -or -not (Test-Path "module/PSScriptAnalyzer")) {
122122
Write-Build DarkMagenta "Restoring bundled modules"
123-
Save-Module -Path module -Repository $PSRepository -Name PSScriptAnalyzer -RequiredVersion "1.23.0" -Verbose
124-
Save-Module -Path module -Repository $PSRepository -Name PSReadLine -RequiredVersion "2.4.0-beta0" -AllowPrerelease -Verbose
123+
Save-PSResource -Path module -Name PSScriptAnalyzer -Version "1.23.0" -Repository $PSRepository -TrustRepository -Verbose
124+
Save-PSResource -Path module -Name PSReadLine -Version "2.4.0-beta0" -Prerelease -Repository $PSRepository -TrustRepository -Verbose
125125
}
126126

127127
Task Build FindDotNet, CreateBuildInfo, RestorePsesModules, {

0 commit comments

Comments
 (0)