Skip to content

Resolve $(Prop) versions, warn on new overloads, cut CI cost, document limits - #14

Merged
Moonwalker1307 merged 4 commits into
mainfrom
claude/project-thread-6t6ddz
Nov 16, 2026
Merged

Moonwalker1307 merged 4 commits into
mainfrom
claude/project-thread-6t6ddz

Conversation

@Moonwalker1307

Copy link
Copy Markdown
Owner

Requested by RT · project thread

Addresses outside review feedback. There are three commits, each one reviewable on its own.

1. Versions set through MSBuild properties

BumpDetector.ReadVersions used to skip Version="$(FooVersion)", which gave a silently empty report. It now resolves the property in this order:

  1. the project file itself;
  2. the nearest .props/.targets in the project's folder or a parent folder (Directory.Build.props, Directory.Packages.props);
  3. any other .props/.targets in the repository, when every definition there agrees (for example eng/Versions.props).

It also follows properties built from other properties ($(FooMajor).4.0). A PR that only edits the property counts as a bump of every package that uses it. Conditional definitions are only accepted in the '$(Foo)' == '' default pattern. Property functions are still skipped.

2. New-overload warning (ChangeKind.OverloadAdded, Warning)

When a method or constructor you call gains an overload that takes the same number of arguments, recompiled source can become ambiguous or bind to the new overload. The same goes for a new extension method in the same static class. The compiled call still binds to the old member, so nothing was reported before. An end-to-end test checks that the flagged call is the one the compiler rejects with CS0121.

3. Action cost and docs

  • New base-build input: analyse a build of the base commit that an earlier step already made, such as the coverage step's worktree, instead of building the solution again.
  • New packagebat-version input: install the published tool from nuget.org instead of compiling it.
  • The README and example now use @v0 instead of @main.
  • New README sections: Pin a version, Cost in CI, Pull requests from forks, and What a green report does not tell you (behaviour, rebinding, generic constraints, nullable annotations, reflection/DI).

Needs a tag after merge

@v0 doesn't exist yet. After merging, tag v0.2.0 on main (publish.yml pushes it to nuget.org) and create a moving v0 tag on the same commit. Until then the README example points at a missing ref.

Testing

  • dotnet test -c Release: 471 unit tests and 23 fuzz tests pass.
  • I ran action/run.sh locally against a scratch repo where a Directory.Build.props property bump was the only change. It was run three ways: with the default build, with base-build (it skips the build and gives the same report), and with packagebat-version: 0.1.0 (the install works).

Generated by Claude Code

BumpDetector used to skip Version="$(FooVersion)", so a PR that bumped a
package through Directory.Build.props or a shared versions file produced an
empty report. It now resolves the property from the project file, the nearest
.props/.targets above it, or any other .props/.targets in the repository when
all definitions agree, follows properties built from other properties, and
treats a PR that only edits the property as a bump of every package that uses it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013ADYoFBDdhdMaSHyZBP2pP
A new overload with the same argument count can make existing source
ambiguous or bind differently, while the compiled call still binds to the old
member, so the diff saw no change. ApiDiff.OverloadAdded (ChangeKind
OverloadAdded, Warning) flags each called method or constructor that gained
one, including new extension methods in the same static class. An end-to-end
test checks the flagged call is the one the compiler rejects with CS0121.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013ADYoFBDdhdMaSHyZBP2pP
- base-build input: analyse a base build an earlier step already made (the
  coverage step's worktree) instead of building the solution a second time.
- packagebat-version input: install the published tool from nuget.org instead
  of compiling PackageBat from source.
- README and example pin @v0 instead of @main, with a section on pinning.
- New sections: cost in CI, PRs from forks (read-only token, report stays in
  the job summary), and what a green report does not tell you (behaviour,
  rebinding, generic constraints, nullable annotations, reflection and DI).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013ADYoFBDdhdMaSHyZBP2pP
@Moonwalker1307 Moonwalker1307 self-assigned this Nov 16, 2026
@Moonwalker1307
Moonwalker1307 merged commit 4505fa7 into main Nov 16, 2026
1 check passed
@Moonwalker1307
Moonwalker1307 deleted the claude/project-thread-6t6ddz branch November 16, 2026 21:05
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.

2 participants