Automatically install NuGet package provider
This commit is contained in:
parent
9715160b98
commit
fe74d438bb
1 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,6 @@
|
|||
#!/bin/pwsh
|
||||
powershell -c Install-PackageProvider -Name NuGet -MinimumVersion "2.8.5.201" -Force;
|
||||
|
||||
foreach ($module in @("PSWindowsUpdate", "KnownFolders"))
|
||||
{
|
||||
if (-not (Get-Module -ListAvailable $module))
|
||||
|
|
Loading…
Reference in a new issue