Automatically install NuGet package provider

This commit is contained in:
Manuel Thalmann 2023-07-18 21:45:15 +02:00
parent 9715160b98
commit fe74d438bb

View file

@ -1,4 +1,6 @@
#!/bin/pwsh #!/bin/pwsh
powershell -c Install-PackageProvider -Name NuGet -MinimumVersion "2.8.5.201" -Force;
foreach ($module in @("PSWindowsUpdate", "KnownFolders")) foreach ($module in @("PSWindowsUpdate", "KnownFolders"))
{ {
if (-not (Get-Module -ListAvailable $module)) if (-not (Get-Module -ListAvailable $module))