Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ AngleSharp.Wasm extends AngleSharp with WebAssembly execution and a DOM/JavaScri
- The solution is `src/AngleSharp.Wasm.sln`.
- The library and test projects target `net8.0` and `net10.0`.
- The library references AngleSharp 1.x and Wasmtime 44.0.0.
- The library sets `IsAotCompatible`, so a trim or AOT analyzer warning breaks the build. Avoid
reflection over runtime types; the analyzers only see this assembly, so publishing a small
`PublishAot` console app against it is the end-to-end check.
- The default runtime is `WasmtimeWasmRuntime`, registered through `Configuration.WithWasm()`.
- `global.json`, when present, controls the SDK version used by the build wrapper.

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.1.1

- Added trimming and Native AOT compatibility (`IsAotCompatible`) for the .NET 8 and .NET 10 targets (#17) @michaelthyregod

# 1.1.0

Released on Friday, August 21 2026.
Expand Down
14 changes: 14 additions & 0 deletions src/AngleSharp.Wasm/AngleSharp.Wasm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,22 @@
<RootNamespace>AngleSharp.Wasm</RootNamespace>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Marks the package trimmable and AOT-compatible, and runs the trim, AOT and single-file
analyzers on every build. -->
<IsAotCompatible>true</IsAotCompatible>
</PropertyGroup>

<!-- IsAotCompatible makes the SDK reference Microsoft.NET.ILLink.Tasks implicitly, at the version
its KnownILLinkPack table lists per target (8.0.x for net8.0, 10.0.x for net10.0). Two versions
of one package in one project make Visual Studio's NuGet Consolidate tab report it, so every
target uses the trimmer of the SDK doing the build instead. Following the SDK's bundled version
keeps it current without pinning, and covers the next pair of targets too (net10.0 next to net11.0).
KnownILLinkPack is SDK-internal and undocumented: if an SDK renames or reshapes it, this goes
inert or fails the restore - drop it then, or once only one .NETCoreApp target is left. -->
<ItemGroup>
<KnownILLinkPack Update="Microsoft.NET.ILLink.Tasks" ILLinkPackVersion="$(BundledNETCoreAppPackageVersion)" />
</ItemGroup>

<PropertyGroup Label="Packaging">
<PackageProjectUrl>https://anglesharp.github.io</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down
Loading