Skip to content

List the package updates a solution has, and what each breaks in it - #86

Merged
Mpdreamz merged 1 commit into
mainfrom
upgrades
Nov 14, 2026
Merged

Mpdreamz merged 1 commit into
mainfrom
upgrades

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

assembly-differ upgrades, run in a solution, lists every directly referenced package that has a newer release. For each one it shows the change to the API your code uses and how many breaking changes hit it.

Prompt summary: Running the tool against a local solution should make validating dependency updates easy, as part of the CLI designed together with the owner: nuget X [to] for one package, and upgrades for every package at once, both limited by default to what the code uses.

Why

nuget X answers for one package. Answering "which of my updates are safe to take" meant listing the packages, finding their latest versions, and running nuget X for each.

What

One table for the solution

upgrades reads each project's project.assets.json for the packages it references directly, and the version and lib/ folder each framework resolves. It compares each with its latest stable release on the NuGet.config feeds. Packages already on their latest release are counted, not listed. A package with no assemblies, such as a build-only one, gets a note.

What the code uses

As with nuget X from #81, only changes to API the built projects reference count, so a purely additive update shows None under the column "Change to what you use". --all counts every change. The comparisons run quietly, one stderr line per package, and assembly-differ nuget <package> <version> shows one update in full.

Output and gating

Markdown by default; -f json writes upgrades.json, with upToDate and per package from, to, suggestedVersionChange, breakingChanges, usesOnly and projects. --fail-on major exits 4 when any update breaks something the code uses.

Verify

mise run test
# UpgradesTests: an app on three local-feed packages, one breaking for it, one additive, one current
cd <a solution> && dotnet build && assembly-differ upgrades

The fixture compiler now takes an assembly name and the test package helper a file name, so a test can publish several packages.

🤖 Generated with Claude Code

Checking a solution's updates meant running nuget X for each package. In a
solution, upgrades reads every package the projects reference directly,
compares each with its latest stable release, and prints one table: the
change to the API the code uses and how many breaking changes hit it.
--all counts every change, -f json writes upgrades.json, and --fail-on
fails on an update at that level.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Mpdreamz Mpdreamz added the feature A new capability (minor bump) label Nov 14, 2026
@Mpdreamz
Mpdreamz merged commit 4fca6b6 into main Nov 14, 2026
6 of 7 checks passed
@Mpdreamz
Mpdreamz deleted the upgrades branch November 14, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature A new capability (minor bump)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant