From 32698454421738e51370c86cfd272e58464a0dce Mon Sep 17 00:00:00 2001 From: Ella Hathaway <67609881+ellahathaway@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:54:57 -0800 Subject: [PATCH] Exclude .signature.p7s from nupkg file count (#10418) --- eng/verify-nupkgs.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/verify-nupkgs.ps1 b/eng/verify-nupkgs.ps1 index e6d54183c1..6fb1274ada 100644 --- a/eng/verify-nupkgs.ps1 +++ b/eng/verify-nupkgs.ps1 @@ -84,7 +84,7 @@ function Verify-Nuget-Packages { $packageKey = $packageBaseName.Replace([string]".$version", [string]"") Write-Host "Verifying package '$packageBaseName'." - $actualNumOfFiles = (Get-ChildItem -Recurse -File -Path $unzipNugetPackageDir).Count + $actualNumOfFiles = (Get-ChildItem -Recurse -File -Path $unzipNugetPackageDir | Where-Object { $_.Name -ne '.signature.p7s' }).Count if (-not $expectedNumOfFiles.ContainsKey($packageKey)) { $errors += "Package '$packageKey' is not present in file expectedNumOfFiles table. Is that package known?" continue