From 38f8f9850e4da9e2d3b765580fa7fbad887582ec Mon Sep 17 00:00:00 2001 From: David Bond Date: Thu, 15 Oct 2026 17:33:02 +0100 Subject: [PATCH] Publish.ps1: only match a real Nerdbank.GitVersioning package reference The project search matched any csproj whose text mentioned Nerdbank.GitVersioning, including a comment in the Demo project, which has no GetBuildVersion target, so the script failed before tagging. Match the PackageReference element instead. Co-Authored-By: Claude Sonnet 5.5 --- Publish.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Publish.ps1 b/Publish.ps1 index bec72d46b..f5f4dc017 100644 --- a/Publish.ps1 +++ b/Publish.ps1 @@ -55,7 +55,7 @@ if (-not $SkipPublishVerification) { # git-ignored folders such as .claude/worktrees/, where each agent worktree holds a full checkout # on its own branch: versioning one of those yields a version that is not a public release. $packableProject = git ls-files '*.csproj' | - Where-Object { (Test-Path $_) -and (Get-Content $_ -Raw) -match 'Nerdbank\.GitVersioning' } | + Where-Object { (Test-Path $_) -and (Get-Content $_ -Raw) -match '