From eb7c4426ef1bcaabad255fd6463057b75befad34 Mon Sep 17 00:00:00 2001 From: Arlo Date: Mon, 23 Dec 2024 16:26:11 -0600 Subject: [PATCH] Fixed an issue where ExcludeMultiTargets wasn't working as expected --- MultiTarget/UseTargetFrameworks.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MultiTarget/UseTargetFrameworks.ps1 b/MultiTarget/UseTargetFrameworks.ps1 index 568e15d..a75c5ee 100644 --- a/MultiTarget/UseTargetFrameworks.ps1 +++ b/MultiTarget/UseTargetFrameworks.ps1 @@ -39,13 +39,14 @@ $AllMultiTargets = @('wasm', 'uwp', 'wasdk', 'wpf', 'linuxgtk', 'macos', 'ios', # Exclude as needed foreach ($excluded in $ExcludeMultiTargets) { $MultiTargets = $MultiTargets.Where({ $_ -ne $excluded }); + $AllMultiTargets = $AllMultiTargets.Where({ $_ -ne $excluded }); } Write-Output "Setting enabled MultiTargets: $MultiTargets" # 'all' represents all available '$MultiTargets' values if ($MultiTargets.Contains("all")) { - $enabledMultiTargets = @('$(AvailableMultiTargets)') + $enabledMultiTargets = $AllMultiTargets -join ";" } else { $enabledMultiTargets = $AllMultiTargets.Where({ $MultiTargets.Contains($_) }) -join ";"