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.

Reflection patterns can not resolve assemblies outside of the reference closure #943

Closed

Description

@sbomer

When a supported reflection pattern references an assembly that is part of the linker input set, but not in the reference closure of any roots (and thus not loaded into the LinkContext assemblies by LoadReferencesStep or any other step that comes before MarkStep), the pattern will fail to resolve. Since simple reflection patterns are often used for activation without a build-time dependency, this seems like something worth supporting. See dotnet/sdk#4017 for the original issue with a repro.

#843 is a similar issue where PreserveDependency doesn't cause xml roots from the referenced assembly to be processed.

If we fix this, we should be able to undo dotnet/runtime#32023.

Activity

  1. added this to the .NET 6.0 milestone on Nov 13, 2020
  2. marek-safar commented on Feb 26, 2021

    @marek-safar
    Contributor

    I believe this should be fixed. @sbomer could you please undo the runtime change so we can fully verify this and close ?

  3. sbomer commented on Mar 12, 2021

    @sbomer
    MemberAuthor

    Fixed by #1666, runtime workarounds removed in dotnet/runtime#49523.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions