Private/Optimize-Repositories.ps1
function Optimize-Repositories { try { Get-PackageProvider -Name NuGet } catch { Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force } Set-PSRepository -Name PSGallery -InstallationPolicy Trusted } |