Skip to content

Bump linq2db to 5.4.1.9 to fix assembly binding conflict#572

Merged
Aaronontheweb merged 1 commit into
akkadotnet:devfrom
Aaronontheweb:fix/linq2db-assembly-binding-567
Feb 15, 2026
Merged

Bump linq2db to 5.4.1.9 to fix assembly binding conflict#572
Aaronontheweb merged 1 commit into
akkadotnet:devfrom
Aaronontheweb:fix/linq2db-assembly-binding-567

Conversation

@Aaronontheweb

@Aaronontheweb Aaronontheweb commented Feb 14, 2026

Copy link
Copy Markdown
Member

Summary

Fixes #567

  • Bumps linq2db from 5.4.1 to 5.4.1.9 in Directory.Packages.props to resolve assembly binding failures

Root Cause

The linq2db project has <Version>5.0.0.0</Version> hardcoded in Directory.Build.props since v5.0.0. Their CI pipeline uses SetVersion.ps1 to patch this value at build time — for v5.4.1, CI set it to 5.4.1, producing AssemblyVersion 5.4.1.0.

However, the 5.4.1.9 package (published October 2025) was built without the CI version patching step — verified by the InformationalVersion in the shipped DLL (5.0.0.0+6b676b55...) which references commit 6b676b55. As a result, it shipped with the unpatched AssemblyVersion 5.0.0.0:

NuGet Package AssemblyVersion FileVersion
linq2db 5.4.1 5.4.1.0 5.4.1
linq2db 5.4.1.9 5.0.0.0 5.0.0.0

Our packages were compiled against 5.4.1 (AssemblyVersion 5.4.1.0). When a user's project resolved the newer 5.4.1.9 via NuGet (satisfying >= 5.4.1), .NET refused to bind because 5.0.0.0 < 5.4.1.0.

Recompiling against 5.4.1.9 makes our assembly reference linq2db, Version=5.0.0.0, which resolves the mismatch.

Test plan

  • dotnet build succeeds with 0 errors
  • Verified compiled DLL references linq2db, Version=5.0.0.0 (not 5.4.1.0)
  • All 310 SQLite tests pass (306 passed, 4 skipped)
  • CI validates full test matrix (SqlServer, PostgreSQL, MySQL)

)

linq2db changed their AssemblyVersion from 5.4.1.0 to 5.0.0.0 between
package versions 5.4.1 and 5.4.1.9. Our packages compiled against 5.4.1
referenced AssemblyVersion 5.4.1.0, causing binding failures when NuGet
resolved the newer 5.4.1.9 (AssemblyVersion 5.0.0.0). Recompiling
against 5.4.1.9 resolves the mismatch.
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.

Assembly binding conflict: Akka.Persistence.Sql.Hosting requires linq2db >= 5.4.1 but sees AssemblyVersion 5.0.0.0

1 participant