However, on line 76 there is this Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force | Out-Null
Line 76 requires Powershell 5 or higher. When I tried to add this artifact to an image with an older version of Windows (e.g. Server 2012 R2), the artifact fails.
Line 73
Test-PowerShellVersion -Version 3.0
This check is for the PSWindowsUpdate module.
However, on line 76 there is this
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force | Out-Null
Line 76 requires Powershell 5 or higher. When I tried to add this artifact to an image with an older version of Windows (e.g. Server 2012 R2), the artifact fails.