[OCR-372] Remove System.Memory dependency to resolve .NET Framework FileLoadException#148
Merged
mee-ironsoftware merged 11 commits intodevelopfrom Mar 19, 2026
Merged
[OCR-372] Remove System.Memory dependency to resolve .NET Framework FileLoadException#148mee-ironsoftware merged 11 commits intodevelopfrom
mee-ironsoftware merged 11 commits intodevelopfrom
Conversation
[master] Prepare for December release
merge to master
Update master branch
[master] Releases/2025.7 Changes
[master] Releases/2025.8 Preparation
[master] Releases/2025.9
mee-ironsoftware
requested changes
Feb 24, 2026
Member
mee-ironsoftware
left a comment
There was a problem hiding this comment.
We have System.Memory as dependency in many packages. We should remove from all repositories and keep only in IronSoftware.Common to preventing future conflict.
Contributor
Author
|
@mee-ironsoftware I agree. I'll update accordingly |
mee-ironsoftware
requested changes
Mar 2, 2026
IronSoftware.Drawing/IronSoftware.Drawing.Common/IronSoftware.Drawing.Common.csproj
Outdated
Show resolved
Hide resolved
Sawraz-IS
reviewed
Mar 16, 2026
Sawraz-IS
approved these changes
Mar 16, 2026
mee-ironsoftware
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
System.MemoryPackageReference fromIronSoftware.Drawing.Common.csprojProblem
.NET Framework 4.8customers getFileLoadExceptionwhenSystem.Memoryassembly version mismatches occur betweenIronSoftware.Common(declaring 4.6.3 → assembly v4.0.2.0) andSixLabors.ImageSharp(compiled against 4.5.5 → assembly v4.0.1.2).5 HubSpot support tickets linked. Affects IronOcr 2025.4, 2025.5, 2025.6.
Root Cause
System.Memory4.6.0+ introduces assembly version4.0.2.0, a breaking change from 4.5.5's4.0.1.2System.Memoryto 4.6.3 inIronSoftware.Common.nuspec, which increased the assembly version gapFix (this PR)
Remove explicit
System.MemoryfromIronSoftware.Drawing.Common.csprojso that SixLabors.ImageSharp's transitiveSystem.Memory4.5.5 becomes the single unified version in the dependency graph.After fix — dependency graph
Part of a Multi-Repo Fix
System.Memoryfrom nuspecType of change
How Has This Been Tested?
System.Memory4.5.5 is the only version in output bin folderChecklist
Fixes OCR-372