diff --git a/build.psm1 b/build.psm1 index 48ee8809303..9d8d267969b 100644 --- a/build.psm1 +++ b/build.psm1 @@ -599,7 +599,7 @@ Fix steps: # https://github.com/PowerShell/PowerShell/issues/10550 @("PSDesiredStateConfiguration.InvokeDscResource") | ForEach-Object { if (!$expFeatures.Contains($_)) { - $expFeatures.Add($_) + $null = $expFeatures.Add($_) } }