Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ jobs:
# lacks the Visual Studio extension-development workload.
$msbuildLog = Join-Path $env:RUNNER_TEMP 'ssms-msbuild.log'
msbuild src/PlanViewer.Ssms/PlanViewer.Ssms.csproj -restore -t:Build -p:Configuration=Release -p:DeployExtension=false | Tee-Object -FilePath $msbuildLog
$auditHit = Select-String -Path $msbuildLog -Pattern 'NU1903|NU1904' | Select-Object -First 1
# Match the diagnostic itself: Directory.Build.props puts NU1903;NU1904 in
# WarningsAsErrors, so the bare codes also appear in csc's /warnaserror+ list.
$auditHit = Select-String -Path $msbuildLog -Pattern '(warning|error) NU190[34]:' | Select-Object -First 1
if ($auditHit) {
Write-Host "::warning::SSMS restore failed the NuGet audit: $($auditHit.Line.Trim())"
}
Expand Down
Loading