Repository navigation
Conversation
mee-ironsoftware
left a comment
There was a problem hiding this comment.
🤖 Automated
/scrutinizereview — not yet read by@mee-ironsoftware.
Automated review — verdict: ship
Blockers: 0 · Major: 0 · Nits: 4 — 3 inline, 1 in this body.
This is deliberately a comment only: it never approves and never requests changes. The verdict above is advisory; @mee-ironsoftware will follow up.
Compiles the netstandard2.0 build against System.Memory 4.6.3 / Buffers 4.6.1 / Vectors 4.6.1 / Unsafe 6.1.2, declares the same four in the nuspec, and adds a CI check that compares the shipped DLL's assembly references with the nuspec. Traced props → csproj → nuspec → CI script: the versions are consistent (System.Memory 4.6.3's own nuspec depends on exactly those three) and the check works on …
Full summary
Compiles the netstandard2.0 build against System.Memory 4.6.3 / Buffers 4.6.1 / Vectors 4.6.1 / Unsafe 6.1.2, declares the same four in the nuspec, and adds a CI check that compares the shipped DLL's assembly references with the nuspec. Traced props → csproj → nuspec → CI script: the versions are consistent (System.Memory 4.6.3's own nuspec depends on exactly those three) and the check works on the windows-latest build agent. Only nits remain. Note: the head already contains DW-38 (451786e), so the PR description's DW-38 conflict warning is out of date.
Findings outside the diff
These lines are not in this PR's diff, so they cannot be inline comments — but they are part of the review.
- Nit
(no file)— Root cause is the hand-maintained nuspec; consider generating it from the csproj later
OCR-372 and this bug both come from the nuspec dependency list drifting away from the csproj's PackageReferences. The CI check catches the System.* subset after the fact.dotnet packfrom the csproj (withPrivateAssetswhere a reference shouldn't flow) would derive the dependency groups automatically and remove this class of bug for every package. The check is a reasonable step for now. This is not a blocker for this PR.
Reviewed head SHA 935ba85ade3f550a90ff430276652228c7f9e8d9. Re-request review on this PR to get a fresh pass.
ikkyuland
left a comment
There was a problem hiding this comment.
Ikkyu's bot auto-review (not from human)
Status: APPROVE. No findings.
The netstandard2.0 build now compiles against the System.Memory 4.6.x family, and the nuspec declares the same four versions. Test-SystemAssemblyReferences.ps1 reads each shipped DLL and compares every watched reference with the assembly in the declared package. Commit 9a9275e fixes the three earlier nits (drift message, NU1605 release note, path separators), and I checked each fix in the full script.
Note: the Azure IronDrawing PR Validation run for 9a9275e is still queued. Make sure that the new "Check System.* assembly references against nuspec" step passes before you merge.
…declare it in the nuspec, and add a CI reference check
…ing, make the reference check path handling portable, and note the NU1605 requirement in the release notes
9a9275e to
366bd1f
Compare
Summary
Upgrades the System.* compatibility packages used by the netstandard2.0 build (what .NET Framework apps get) to the 4.6.x family, declares them in the nuspec, and adds a CI check so a System.* version mismatch can't ship again. This is step 1 of moving off the OCR-372
System.Memory 4.5.5pin, and a prerequisite for SkiaSharp (which needs System.Memory 4.6.3 on .NET Framework).It also fixes a live bug. The published
IronSoftware.System.Drawing2026.8.2 fails in a plain .NET Framework 4.8 console app:IronSoftware.Drawing.Common.dllis compiled against System.Memory 4.5.5 (assembly 4.0.1.2), which SkiaSharp and Maui.Graphics pull in at build time. The nuspec declares no System.Memory dependency, so a consumer only restores ImageSharp's minimum, 4.5.4 (assembly 4.0.1.1). That's the same class of bug as OCR-372.Changes
IronSoftware.Drawing/SystemPackages.props(new, imported byIronSoftware.Drawing.Common.csproj, netstandard2.0 only). These four ship together and must be upgraded together:NuGet/IronSoftware.Drawing.nuspec: the four packages are now declared in thenetstandard2.0dependency group, at the same versions we compile against. The release note gives the binding-redirect versions. net6.0 is unchanged.CI/scripts/Test-SystemAssemblyReferences.ps1plus a new step inbuild_drawing_libraries.ymlright after the build. For every netstandard2.0 / .NET Framework group in the nuspec, it reads the DLLs that group ships and fails if any of them:Testing
Build: full solution, Release, 0 errors.
Tests: net8.0 423/423 passed; net48 409/409 passed. The net48 test output deploys Memory 4.0.5.0, Buffers 4.0.5.0, Vectors 4.1.6.0 and Unsafe 6.0.3.0, and the generated binding redirects match the release-note versions.
CI check:
references System.Memory 4.0.2.0, but the declared System.Memory 4.5.5 only provides 4.0.1.2).Package: packed with nuget.exe 6.2.1 using the deploy job's layout (
bin/Release+NuGet/).lib/netstandard2.0andlib/net60are present, and the packed nuspec lists the four new dependencies. (NU5501 aboutlib/net60folder naming was already there.).NET Framework 4.8 consumer apps against the local package (load and export PNG, JPEG, BMP, multi-page TIFF, WebP):
AutoGenerateBindingRedirects=false, no redirectsFileLoadException(expected: shows the redirects are required)FileLoadExceptionSystem.Memory 4.0.1.2Not tested: old-style
packages.configprojects and ASP.NET Web Site projects in Visual Studio. They need the redirect block if VS doesn't add it.Binding redirects (for customers who maintain them by hand)
Downstream impact (read before releasing)
System.Memory 4.5.5directly (IronPdf, OpenXmlPowerTools, IronSoftware.Chrome, IronSoftware.Pdfium, IronWord, IronOcr, IronBarCode) get a NU1605 build error when they adopt this version. That's intentional: they must move to the same four versions in the same release and declare them in their own nuspecs. The same CI check can be copied into those repos; it also covers merged DLLs, which is exactly how OCR-372 happened.develop, which doesn't have DW-38 yet. Expect small csproj/nuspec conflicts with the DW-38 branch (TargetFrameworks line, nuspec groups). Both changes should be kept.🤖 Generated with Claude Code