Get PowerShellGet from the PowerShell Gallery (#5452)

This commit is contained in:
Travis Plunk
2017-11-15 10:19:25 -08:00
committed by Dongbo Wang
parent 5d8999e8b5
commit 3c7cd11152
+1 -5
View File
@@ -597,14 +597,10 @@ function Restore-PSModuleToBuild
$modulesDir = Join-Path -Path $publishPath -ChildPath "Modules"
# Restore modules from myget feed
# Restore modules from powershellgallery feed
Restore-PSModule -Destination $modulesDir -Name @(
# PowerShellGet depends on PackageManagement module, so PackageManagement module will be installed with the PowerShellGet module.
'PowerShellGet'
)
# Restore modules from powershellgallery feed
Restore-PSModule -Destination $modulesDir -Name @(
'Microsoft.PowerShell.Archive'
) -SourceLocation "https://www.powershellgallery.com/api/v2/"
}