xamarin-macios icon indicating copy to clipboard operation
xamarin-macios copied to clipboard

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

Open rolfbjarne opened this issue 2 years ago • 1 comments

Ref: https://github.com/xamarin/xamarin-macios/pull/17374#discussion_r1236335459

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.

rolfbjarne avatar Jun 21 '23 10:06 rolfbjarne

@ivanpovazan I would like to pick this up

jkurdek avatar Jan 09 '24 14:01 jkurdek