Skip to content

Bump deps to LightInject 7.1.0 and fix AnyKey keyed service spec compliance - #221

Merged
seesharper merged 10 commits into
masterfrom
bump-deps
May 28, 2026
Merged

Bump deps to LightInject 7.1.0 and fix AnyKey keyed service spec compliance#221
seesharper merged 10 commits into
masterfrom
bump-deps

Conversation

@seesharper

Copy link
Copy Markdown
Owner

Summary

  • Update LightInject to 7.1.0 and Microsoft.Extensions.* packages to 10.0.x
  • Throw InvalidOperationException when GetKeyedService/GetRequiredKeyedService is called with KeyedService.AnyKey for non-enumerable types, as required by the MS DI spec
  • Cache IEnumerable<T> results for AnyKey queries so repeated calls to the same provider return the same instance (Assert.Same compliance)

Test plan

  • All 266 tests pass (up from 258 with LightInject 7.0.2; the 8 remaining failures from 7.1.0 are now resolved)
  • Clean build confirmed against LightInject 7.1.0 from nuget.org

🤖 Generated with Claude Code

seesharper and others added 10 commits May 21, 2026 15:02
…liance

- Update LightInject to 7.1.0 and Microsoft.Extensions.* packages to 10.0.x
- Throw InvalidOperationException when GetKeyedService/GetRequiredKeyedService is called with KeyedService.AnyKey for non-enumerable types
- Cache IEnumerable<T> results for AnyKey queries so repeated calls return the same instance (Assert.Same compliance)
- All 266 tests pass (was 258 with 7.0.2, 8 remaining failures now resolved)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Aligns with global.json which pins 10.0.201.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Allows the CI runner's 10.0.300 SDK to satisfy the 10.0.201 version requirement.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Projects target net8.0 so the workflow should use 8.0.x. The global.json
was a local dev artifact and should not be in the repo.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Uses the multiline dotnet-version format to install both SDKs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@seesharper
seesharper merged commit da592d2 into master May 28, 2026
2 of 4 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