Move Pure.DI past 2.5.8 to the newest settled 2.5.x, and prove the generated composition is the same graph

Open
#5,809 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp
Domain
devtools

Research direction

Start with the Pure.DI version pinned in Directory.Packages.props and the licence row at scripts/package-licences.tsv:46, then pick the newest 2.5.x at least a week old and read its release notes. Build before and after the bump, and diff the generated DISetup code under obj/ against IDE/HexIDE/DISetup.cs. Done means the pin and MIT licence are confirmed, every generated difference is explained in the PR body, and HexIDE.Tests, HexIDE.Integration.Tests and the runtime suites pass.

Written by the indexing model from the issue text.

Description

chore small tooling

What: move Pure.DI from 2.5.8 to the newest settled 2.5.x, and prove the composition it generates is the same graph, as #4213 did for 2.5.7.

Why: currency. Read from NuGet on 2026-11-28:

Version Published
2.5.8 (Directory.Packages.props today) 2026-11-18
2.5.9 2026-11-19
2.5.10 2026-11-21
2.5.11 2026-11-25

Four releases in a week, so the line is moving fast. Pick the newest version that is at least a week old when this is picked up, rather than whatever landed that morning. The release notes for 2.5.9 to 2.5.11 haven't been read here. Read them first and say in the PR what changed.

Why green suites aren't enough: #4213 found that a Pure.DI release changed binding inference. 2.5.6 made a parameterless Bind() infer only directly implemented interfaces, so a type could resolve through a different binding and every test still pass. IDE/HexIDE/DISetup.cs has 59 bindings, most of them .Bind().As(Singleton).To<X>(). A patch release can do the same, so the check from #4213 applies again.

Acceptance:

  • Pin and licence. Directory.Packages.props pins the chosen version. Its licence, read from the NuGet catalog entry at that version, is MIT, as scripts/package-licences.tsv:46 records. 2.5.11's catalog entry reads licenseExpression: MIT, with no dependencies.
  • The generated composition is compared. Diff Pure.DI's generated DISetup code under obj/ before and after the bump, and account for every difference in the PR body.
  • The usual suites pass: HexIDE.Tests, HexIDE.Integration.Tests and the runtime suites, with the CI floors.

Context: DryIoc's 6.0 / MS.DI adapter 8.0 release (2026-11) was weighed and doesn't change the choice of Pure.DI:

  • Pure.DI gives build-time errors for missing bindings.
  • It uses no reflection, which keeps the browser head (RunAOTCompilation) and any future ahead-of-time target open.
  • Add-ins register through the host interface, not the container.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AxzzVfxHoaTcLsJtT3inyC

Dominant language
C#
Stars
11
Forks
6
Avg merge
1h 1m
Merged PRs (30d)
152

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hexide-io/HexIDE

All issues in hexide-io/HexIDE

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.