Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Provide a way for custom steps to resolve assemblies #2073

Closed

Description

@sbomer

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 implement IAssemblyResolver on LinkContext. The latter would nicely match what we did with IMetadataResolver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions