Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Trimming and Native AOT compatibility for .NET v1.0.0

Use this resource to make .NET code trimming-safe and Native AOT compatible

New

  • 396 downloads
  • 210 likes
  • 184 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install dotnet-trimming-native-aot

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent turns on the MSBuild analysis properties, applies the trimming attributes and picks a pattern from the playbook: source generators, UnsafeAccessor or explicit runtime scanning boundaries. It resolves the warnings without suppressing them lightly.

Mostly picked by

Updated November 2, 2026

Card for the “Trimming and Native AOT compatibility for .NET” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: trimming model, project configuration and checklist
  • trimming-attributes-reference.md: trimming attributes
  • aot-trimming-playbook-reference.md: patterns to apply

Good fit for

  • You want to publish an app with PublishAot.
  • A library uses reflection and must survive trimming.

Not for

    Tags

    • dotnet
    • aot
    • trimming
    • warnings

    About

    You say

    “Make my library compatible with PublishAot and fix the IL2xxx warnings.”

    Card for the “Trimming and Native AOT compatibility for .NET” skill

    Skill published by aaronontheweb under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to make .NET code trimming-safe and Native AOT compatible
    3. Review and adjust the result

    Content preview

    Files

    • aot-trimming-playbook-reference.md35.1 KB
    • LICENSE1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • SKILL.md11.6 KB
    • trimming-attributes-reference.md14.9 KB

    Origin and licence

    Listed unmodified

    Author
    aaronontheweb
    Source
    github.com/aaronontheweb/dotnet-skills/tree/5ca5db8cf25566f19d2a5dc53204d4af22b23a0d/skills/aot-trimming
    Licence
    MIT

    Notice

    « aot-trimming » (aaronontheweb, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.