[CI] Update verifyNoticeMdAgainstNugetPackages.ps1 to use no-restore flag

This commit is contained in:
Jeremy Sinclair
2025-08-22 15:20:16 -04:00
parent b4bd6cff73
commit 556ffdc7a1

View File

@@ -22,7 +22,7 @@ $totalList = $projFiles | ForEach-Object -Parallel {
#Workaround for preventing exit code from dotnet process from reflecting exit code in PowerShell #Workaround for preventing exit code from dotnet process from reflecting exit code in PowerShell
$procInfo = New-Object System.Diagnostics.ProcessStartInfo -Property @{ $procInfo = New-Object System.Diagnostics.ProcessStartInfo -Property @{
FileName = "dotnet.exe"; FileName = "dotnet.exe";
Arguments = "list $csproj package"; Arguments = "list $csproj package --no-restore";
RedirectStandardOutput = $true; RedirectStandardOutput = $true;
RedirectStandardError = $true; RedirectStandardError = $true;
} }