From 4030ddff9bccf0d08d11a9dfc437aa2eb50376bf Mon Sep 17 00:00:00 2001 From: Alexander Holstrup <117829001+aholstrup1@users.noreply.github.com> Date: Fri, 18 Oct 2024 13:04:27 +0200 Subject: [PATCH] Fix init of addDependencies (#3732) --- CompilerFolderHandling/Compile-AppWithBcCompilerFolder.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CompilerFolderHandling/Compile-AppWithBcCompilerFolder.ps1 b/CompilerFolderHandling/Compile-AppWithBcCompilerFolder.ps1 index f1094d96f..df8b7e634 100644 --- a/CompilerFolderHandling/Compile-AppWithBcCompilerFolder.ps1 +++ b/CompilerFolderHandling/Compile-AppWithBcCompilerFolder.ps1 @@ -187,7 +187,7 @@ try { $existingApp = $existingApps | Where-Object { ((($dependency.appId -ne '' -and $_.AppId -eq $dependency.appId) -or ($dependency.appId -eq '' -and $_.Name -eq $dependency.Name)) -and ([System.Version]$_.Version -ge [System.Version]$dependency.version)) } | Sort-Object { [System.Version]$_.Version } -Descending | Select-Object -First 1 - $addDependencies = $() + $addDependencies = @() if ($existingApp) { Write-Host "Dependency App exists" if ($existingApp.ContainsKey('PropagateDependencies') -and $existingApp.PropagateDependencies -and $existingApp.ContainsKey('Dependencies')) {