xamarin-macios
xamarin-macios copied to clipboard
NativeAOT: Investigate whether we can narrow down the list of assemblies to look for UnmanagedCallersOnly entry points
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.
@ivanpovazan I would like to pick this up