Skip to content

Update NuGet packages, remove DocxTemplater.Images.ImageSharp - #156

Merged
Amberg merged 2 commits into
mainfrom
workitems/NugetUpdate
Oct 5, 2026
Merged

Amberg merged 2 commits into
mainfrom
workitems/NugetUpdate

Conversation

@Amberg

@Amberg Amberg commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

Raises all NuGet packages to their latest versions and removes the ImageSharp adapter package.

Removed: DocxTemplater.Images.ImageSharp ⚠️ breaking

  • ImageSharp 4 ships an MSBuild target that fails Release builds without a Six Labors license key, so the adapter cannot follow ImageSharp upstream without a license in CI and for every contributor.
  • The built-in metadata reader in DocxTemplater.Images covers PNG, JPEG, GIF, BMP and TIFF. Users who need another image library implement IImageMetadataReader in their own project.
  • The adapter project, its test project and the solution entries are gone; README and the DocxTemplater.Images package description are updated with a migration note.

Version ranges (upper bound unchanged):

  • DynamicExpresso.Core [2.19.3,3.0.0) → [2.19.6,3.0.0)
  • Markdig [1.3.2, 2.0.0) → [1.4.0, 2.0.0)
  • DocumentFormat.OpenXml [3.5.1,4.0.0) already current.

Fixed versions:

  • Polyfill 11.2.0 → 11.4.2
  • Microsoft.SourceLink.GitHub 10.0.400 → 10.0.401
  • NUnit 4.6.1 → 5.0.0, NUnit.Analyzers 4.14.0 → 4.15.0, NUnit3TestAdapter 6.2.0 → 6.3.0
  • Microsoft.NET.Test.Sdk 18.9.0 → 18.10.1, coverlet.collector 10.0.1 → 10.1.0

Also removed:

  • JetBrains.DotMemoryUnit from the test project. It was never referenced by any code and is no longer listed on nuget.org.

Test plan

  • dotnet build DocxTemplater.slnx -c Release with 0 warnings / 0 errors
  • dotnet test DocxTemplater.slnx -c Release: 572 + 26 tests pass on net8.0, net9.0 and net10.0

🤖 Generated with Claude Code

@Amberg Amberg changed the title Update NuGet packages (ImageSharp 4, NUnit 5) Update NuGet packages (NUnit 5) Oct 5, 2026
@Amberg Amberg changed the title Update NuGet packages (NUnit 5) Update NuGet packages, remove DocxTemplater.Images.ImageSharp Oct 5, 2026
Amberg and others added 2 commits October 5, 2026 10:42
Lower bounds of the version ranges are raised, upper bounds kept:
DynamicExpresso.Core [2.19.6,3.0.0), Markdig [1.4.0, 2.0.0).

Polyfill 11.4.2, Microsoft.SourceLink.GitHub 10.0.401, NUnit 5.0.0,
NUnit.Analyzers 4.15.0, NUnit3TestAdapter 6.3.0,
Microsoft.NET.Test.Sdk 18.10.1, coverlet.collector 10.1.0.

JetBrains.DotMemoryUnit is removed from the test project. It was never
used by any code and is no longer listed on nuget.org.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
ImageSharp 4 requires a license key for Release builds, and the
built-in metadata reader in DocxTemplater.Images covers PNG, JPEG, GIF,
BMP and TIFF. The adapter package and its tests are removed; users who
need another image library implement IImageMetadataReader themselves.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Amberg
Amberg force-pushed the workitems/NugetUpdate branch from 335365c to b57641d Compare October 5, 2026 08:42
@Amberg
Amberg merged commit 78839e6 into main Oct 5, 2026
4 checks passed
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.

1 participant