Move NuGet
provider installation to prerequisites
This commit is contained in:
parent
117157a861
commit
c098b6060c
2 changed files with 4 additions and 2 deletions
scripts/Windows/Scripts
|
@ -1,4 +1,8 @@
|
|||
#!/bin/pwsh
|
||||
if (-not (powershell -c Get-PackageProvider -ListAvailable NuGet)) {
|
||||
powershell -c Install-PackageProvider -Name NuGet -Force;
|
||||
}
|
||||
|
||||
foreach ($module in @("PSWindowsUpdate", "KnownFolders"))
|
||||
{
|
||||
if (-not (Get-Module -ListAvailable $module))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue