diff --git a/build.psm1 b/build.psm1 index 6677c95b44..50ab4254d2 100644 --- a/build.psm1 +++ b/build.psm1 @@ -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/" }