Skip to content

26.7.2

Choose a tag to compare

@github-actions github-actions released this 24 Jul 12:04

26.7.2 — Revert the GDI+ resolver added in 26.7.1 (regression)

What changed

  • Removed GdiPlusResolver and its GdiPlusResolver.Register() call from Program.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 (both version fields).

Why

26.7.1 registered a DllImportResolver on System.Drawing.Common to map gdiplus.dll to libgdiplus. That was wrong on two counts:

  1. Wrong assembly. SetDllImportResolver is per-declaring-assembly. The gdiplus.dll P/Invoke is declared in System.Private.Windows.Core (System.Drawing.Common 9.x's CsWin32 interop layer), not in System.Drawing.Common.
  2. It broke the type initializer. System.Drawing.Common registers its own resolver inside the System.Drawing.Gdip static constructor. Because 26.7.1 claimed that slot first, Gdip's cctor threw InvalidOperationException: 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