microsoft / microsoft/NativeAOTDependencyHelper

Add support for new AOT metadata flag in .NET 10

Open Beginner friendly
#17 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
45
Forks
6
Avg merge
16h 1m
Merged PRs (30d)
1

Description

In .NET 10 they added a similar metadata flag to trimmable for AOT: https://github.com/dotnet/runtime/pull/118180

<IsTrimmable>true</IsTrimmable> adds [assembly: AssemblyMetadata("IsTrimmable", "True")]
<IsAotCompatible>true</IsAotCompatible> adds [assembly: AssemblyMetadata("IsAotCompatible", "True")

We already have the checker for IsTrimmable check here: https://github.com/microsoft/NativeAOTDependencyHelper/blob/main/NativeAOTDependencyHelper.Core/Checks/IsTrimmableMetadataCheck.cs

We should copy this to add for IsAotCompatible as well for libraries that build against .NET 10.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading NativeAOTDependencyHelper.Core/Checks/IsTrimmableMetadataCheck.cs and the linked .NET runtime change to understand how the existing metadata check works. Add equivalent coverage for IsAotCompatible, and verify that libraries built against .NET 10 are recognized through the new assembly metadata flag.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.