Skip to content

chore: ignore MSBuild static-graph restore cache + fix DI version pin#30

Merged
Theauxm merged 2 commits into
mainfrom
chore/gitignore-lscache
May 18, 2026
Merged

chore: ignore MSBuild static-graph restore cache + fix DI version pin#30
Theauxm merged 2 commits into
mainfrom
chore/gitignore-lscache

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented May 18, 2026

Summary

Two unrelated small changes:

  1. .gitignore: adds *.csproj.lscache (MSBuild static-graph restore cache, regenerated on every build).
  2. Test project DI pin fix: bumps Microsoft.Extensions.DependencyInjection in Trax.Dashboard.Tests.Integration from 10.0.7 to 10.* to match the convention in other Trax test projects.

Why the version fix

Microsoft.EntityFrameworkCore.InMemory 10.0.5 now transitively pulls Microsoft.Extensions.Logging 10.0.8 which requires Microsoft.Extensions.DependencyInjection >= 10.0.8. With the test csproj pinning 10.0.7, NuGet emits NU1605 (package downgrade) which CI promotes to a build error. The failure is on main already — the .gitignore chore just happened to surface it.

Switching to the 10.* floating version pattern (already used in Trax.Api.Tests, Trax.Effect.Tests.Integration, etc.) lets the transitive closure pick whatever floor it needs without us having to chase point-version bumps.

Test plan

  • dotnet restore succeeds locally after the bump.
  • No code changes; only csproj metadata and .gitignore.
  • CI green.

Theauxm added 2 commits May 18, 2026 13:12
*.csproj.lscache is produced by MSBuild's static graph restore and should
not be checked in. Generated locally on every build/restore.
The integration tests pinned Microsoft.Extensions.DependencyInjection
to 10.0.7, but EF Core InMemory 10.0.5 transitively requires
Microsoft.Extensions.Logging 10.0.8 which depends on
Microsoft.Extensions.DependencyInjection >= 10.0.8. NuGet flagged the
downgrade as NU1605, which CI treats as a build error.

Switch to the 10.* floating version other Trax test projects use so
restore picks whatever floor the transitive closure requires.

Unrelated to the .gitignore change in this branch; CI surfaced it on
this PR because the failure is on main.
@Theauxm Theauxm changed the title chore: ignore MSBuild static-graph restore cache chore: ignore MSBuild static-graph restore cache + fix DI version pin May 18, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Theauxm Theauxm merged commit e456b62 into main May 18, 2026
2 checks passed
@Theauxm Theauxm deleted the chore/gitignore-lscache branch May 18, 2026 19:42
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