Skip to content

NativeAOT: Investigate whether we can narrow down the list of assemblies to look for UnmanagedCallersOnly entry points #18484

@rolfbjarne

Description

@rolfbjarne

Ref: #17374 (comment)

We currently look for UnmanagedCallersOnly entry points in all assemblies:

<!-- Process UnmanagedCallersOnly attributes from every assembly -->
<UnmanagedEntryPointsAssembly Remove="System.Private.CoreLib" />
<UnmanagedEntryPointsAssembly Include="@(_UpdatedManagedAssemblyToLink->'%(Filename)')" />

We must to do this for all assemblies we've modified using the managed static registrar, but it might not be necessary for any other assemblies.

So we need to look into whether we can shrink this list of assemblies.

Metadata

Metadata

Assignees

Labels

enhancementThe issue or pull request is an enhancementnativeaot

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions