You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should provide some way to load new assemblies so that reflection isn't required here. I think rather than making GetReferencedAssemblies public we should give custom steps more granular control over individual assembly resolution. Maybe we could make AssemblyResolver public, or implement IAssemblyResolver on LinkContext. The latter would nicely match what we did with IMetadataResolver.
The text was updated successfully, but these errors were encountered:
* Implement IAssemblyResolver for LinkContext
Fixesdotnet/linker#2073
* Fix using order
* Don't implement IAssemblyResolver
Commit migrated from dotnet/linker@802aa45
Xamarin-macios uses reflection to get a linker method that loads assemblies:
https://github.com/xamarin/xamarin-macios/blob/882dde132a0b893c1e929969d7472e93ec7745c8/tools/dotnet-linker/Steps/CollectAssembliesStep.cs#L19
We should provide some way to load new assemblies so that reflection isn't required here. I think rather than making
GetReferencedAssemblies
public we should give custom steps more granular control over individual assembly resolution. Maybe we could make AssemblyResolver public, or implementIAssemblyResolver
onLinkContext
. The latter would nicely match what we did withIMetadataResolver
.The text was updated successfully, but these errors were encountered: