Skip to content

Publish.ps1: only match a real Nerdbank.GitVersioning package reference - #246

Merged
davidnmbond merged 1 commit into
mainfrom
fix/publish-project-detection
Oct 15, 2026
Merged

davidnmbond merged 1 commit into
mainfrom
fix/publish-project-detection

Conversation

@davidnmbond

Copy link
Copy Markdown
Contributor

Publish.ps1 picks the first tracked csproj whose text matches Nerdbank.GitVersioning. The Demo project mentions it in a comment, sorts first, and has no GetBuildVersion target, so the script stops with MSB4057 before tagging anything.

This changes the match to the PackageReference element. Checked locally: it now selects PanoramicData.Blazor.Web.csproj, and the GetBuildVersion call returns a version (10.0.364 on main).

Nothing else in the script changes.

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@codacy-production

codacy-production Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Coverage ∅ diff coverage · +0.00% coverage variation

Metric Results
Coverage variation ✅ +0.00% coverage variation
Diff coverage ✅ ∅ diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (42f6ca5) 18071 18048 99.87%
Head commit (38f8f98) 18071 (+0) 18048 (+0) 99.87% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#246) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

AI Reviewer: run a review on demand. To trigger the first review automatically, go to your organization or repository integration settings. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@davidnmbond
davidnmbond merged commit 6aa4bc6 into main Oct 15, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant