From ada1170e11d9d931220692251ad58a79ceefcfad Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Mon, 1 Jun 2020 13:18:02 -0700 Subject: [PATCH] (GH-57) Revert change to generic list This is causing build failures, and for now, simply revert back to previous usage of ArrayList. --- Tasks/chocolatey/chocolatey.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tasks/chocolatey/chocolatey.ps1 b/Tasks/chocolatey/chocolatey.ps1 index 8a081d2..3cd7cac 100644 --- a/Tasks/chocolatey/chocolatey.ps1 +++ b/Tasks/chocolatey/chocolatey.ps1 @@ -19,8 +19,7 @@ try { $chocolateyVersion = & $chocoExe --version Write-Output "Running Chocolatey Version: $chocolateyVersion" - #Array list is deprecated, switch to a Generic and avoid the costly New-Object call - $chocolateyArguments = [System.Collections.Generic.List]::New() + $chocolateyArguments = New-Object System.Collections.ArrayList [bool]$debug = Get-VstsInput -Name 'debug' -AsBool -Default $false [bool]$verbose = Get-VstsInput -Name 'verbose' -AsBool -Default $false