From 7a045b6c1287b7348d2ffc64bee7864e08f1ac2f Mon Sep 17 00:00:00 2001 From: Aaron Parker Date: Fri, 26 Jul 2024 08:07:59 +1000 Subject: [PATCH] Update Get-VcList.ps1 --- VcRedist/Public/Get-VcList.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/VcRedist/Public/Get-VcList.ps1 b/VcRedist/Public/Get-VcList.ps1 index 2b553ff7..52554054 100644 --- a/VcRedist/Public/Get-VcList.ps1 +++ b/VcRedist/Public/Get-VcList.ps1 @@ -70,8 +70,9 @@ function Get-VcList { # if ($Release -match $JsonManifest.Unsupported.Release) { # Write-Warning -Message "This list includes unsupported Visual C++ Redistributables." # } - [System.Management.Automation.PSObject[]] $Output = $JsonManifest.Supported | Where-Object { $Release -contains $_.Release } | ` - Where-Object { $Architecture -contains $_.Architecture } + $Output = New-Object -TypeName "System.Collections.ArrayList" + $Output.Add([System.Management.Automation.PSObject]($JsonManifest.Supported | Where-Object { $Release -contains $_.Release } | ` + Where-Object { $Architecture -contains $_.Architecture })) } try {