Skip to content

Make the library trim and Native AOT compatible - #17

Merged
FlorianRappl merged 2 commits into
AngleSharp:develfrom
michaelthyregod:feature/aot
Nov 9, 2026
Merged

FlorianRappl merged 2 commits into
AngleSharp:develfrom
michaelthyregod:feature/aot

Conversation

@michaelthyregod

Copy link
Copy Markdown
Contributor

Marks the library IsAotCompatible, as in AngleSharp, AngleSharp.Xml, AngleSharp.Css and AngleSharp.Io, so the trim and AOT analyzers run on every build. It uses the same KnownILLinkPack override as those repositories.

  • Change: csproj only, plus a line in AGENTS.md and a CHANGELOG line; no code changes were needed.
  • Behaviour: none for existing users.

Verified: both targets build without trim or AOT warnings, and a console app published with PublishAot (runtime API, DOM bridge, host import, CompileError) compiles without warnings, Wasmtime included, and runs correctly.

🤖 Generated with Claude Code

- Mark the net8.0 and net10.0 targets IsAotCompatible, so the trim and AOT
  analyzers run on every build, with the same KnownILLinkPack override as
  AngleSharp, AngleSharp.Xml, AngleSharp.Css and AngleSharp.Io
- Update AGENTS.md and CHANGELOG.md

No code changes were needed: both targets build without trim or AOT
warnings, and a console app published with PublishAot (runtime API, DOM
bridge, host imports, CompileError) compiles without warnings, Wasmtime
included, and runs correctly.
@CLAassistant

CLAassistant commented Nov 9, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@FlorianRappl FlorianRappl added this to the v1.1.1 milestone Nov 9, 2026

@FlorianRappl FlorianRappl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@FlorianRappl
FlorianRappl merged commit cf56bd3 into AngleSharp:devel Nov 9, 2026
5 checks passed
@michaelthyregod
michaelthyregod deleted the feature/aot branch November 9, 2026 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants