Skip to content

Add tests for downgrading assembly resolution via resolution extensions #84039

Open
@vitek-karas

Description

@vitek-karas

Currently it's possible to override the default assembly resolution mechanism and resolve a reference for A, Version=3.0 with A, Version=1.0, but only via extension mechanisms (AppDomain event handler, AssemblyLoadContext event handler, or custom ALC).

Normal runtime resolution (from the ALC.Default/TPA) will now allow downgrades.

We don't seem to have any tests for this though. The closest I could find are the binder tracing tests which validate that in this case the event handlers are invoked, but it doesn't validate that if the handler returns a lower version the runtime will accept it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions