26.7.2
26.7.2 — Revert the GDI+ resolver added in 26.7.1 (regression)
What changed
- Removed
GdiPlusResolverand itsGdiPlusResolver.Register()call fromProgram.cs. This reverts the change shipped in 26.7.1. - Bumped the MCP package version from 26.7.1 to 26.7.2, including
.mcp/server.json(bothversionfields).
Why
26.7.1 registered a DllImportResolver on System.Drawing.Common to map gdiplus.dll to libgdiplus. That was wrong on two counts:
- Wrong assembly.
SetDllImportResolveris per-declaring-assembly. Thegdiplus.dllP/Invoke is declared inSystem.Private.Windows.Core(System.Drawing.Common 9.x's CsWin32 interop layer), not inSystem.Drawing.Common. - It broke the type initializer.
System.Drawing.Commonregisters its own resolver inside theSystem.Drawing.Gdipstatic constructor. Because 26.7.1 claimed that slot first, Gdip's cctor threwInvalidOperationException: A resolver is already set for the assembly, which escaped the type initializer and disabled System.Drawing entirely.
On Linux this replaced the pre-existing failure with a different one, so it fixed nothing and obscured the real symptom. Windows was unaffected — the resolver was a no-op there.
Note on the Linux failure
The resolver was added on the assumption that Annotation failed on Linux the same way GroupDocs.Comparison does (a gdiplus.dll DllNotFoundException). Re-checking the 26.7.0 CI logs shows Annotation's Linux integration failure is actually different — IOException: The server shut down unexpectedly — i.e. the server process terminates rather than surfacing a GDI+ error. That failure is still open and is tracked separately; this release only removes the incorrect resolver so the underlying symptom is visible again.
Unlike GroupDocs.Comparison, the Annotation engine (GroupDocs.Annotation.Net80 26.6.0) depends on Aspose.Drawing and does not pull System.Drawing.Common, so the Windows-only System.Drawing limitation documented for Comparison does not directly apply here.
Migration / impact
Drop-in replacement for 26.7.1, and the recommended upgrade from it. No tool-name, input-schema, or response-shape changes. Windows behaviour is unchanged.
Full Changelog: 26.7.1...26.7.2