diff --git a/eng/common/scripts/Package-Properties.ps1 b/eng/common/scripts/Package-Properties.ps1 index f8daf09c2..7b9bd0b5f 100644 --- a/eng/common/scripts/Package-Properties.ps1 +++ b/eng/common/scripts/Package-Properties.ps1 @@ -266,7 +266,7 @@ function Update-TargetedFilesForExclude([string[]]$TargetedFiles, [string[]]$Exc foreach ($file in $TargetedFiles) { $shouldExclude = $false foreach ($exclude in $ExcludePaths) { - if (!$file.StartsWith($exclude,'CurrentCultureIgnoreCase')) { + if ($file.StartsWith($exclude,'CurrentCultureIgnoreCase')) { $shouldExclude = $true break }