Use ForEach (#3236)
Select-Object -ExpandProperty doesn't work with HashTables Use ForEach instead. --------- Co-authored-by: freddydk <freddydk@users.noreply.github.com>
This commit is contained in:
Родитель
e932f36f90
Коммит
54b03a1617
|
@ -1224,7 +1224,7 @@ $Parameters = @{
|
|||
}
|
||||
if ($useCompilerFolder) {
|
||||
$existingAppFiles = @(Get-ChildItem -Path (Join-Path $packagesFolder '*.app') | Select-Object -ExpandProperty FullName)
|
||||
$installedAppIds = @(GetAppInfo -AppFiles $existingAppFiles -compilerFolder $compilerFolder -cacheAppinfoPath (Join-Path $packagesFolder 'AppInfoCache.json') | Select-Object -ExpandProperty 'AppId')
|
||||
$installedAppIds = @(GetAppInfo -AppFiles $existingAppFiles -compilerFolder $compilerFolder -cacheAppinfoPath (Join-Path $packagesFolder 'AppInfoCache.json') | ForEach-Object { $_.AppId } )
|
||||
}
|
||||
elseif (!$filesOnly) {
|
||||
$installedAppIds = @(Invoke-Command -ScriptBlock $GetBcContainerAppInfo -ArgumentList $Parameters | Select-Object -ExpandProperty 'AppId')
|
||||
|
|
|
@ -1147,7 +1147,7 @@ function GetAppInfo {
|
|||
Add-Type -AssemblyName System.Text.Encoding
|
||||
LoadDLL -Path (Join-Path $alcDllPath Newtonsoft.Json.dll)
|
||||
LoadDLL -Path (Join-Path $alcDllPath System.Collections.Immutable.dll)
|
||||
LoadDLL -Path (Join-Path $alcDllPath System.IO.Packaging.dll)
|
||||
LoadDLL -Path (Join-Path $alcDllPath System.IO.Packaging.dll)
|
||||
LoadDLL -Path (Join-Path $alcDllPath Microsoft.Dynamics.Nav.CodeAnalysis.dll)
|
||||
$assembliesAdded = $true
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче