Add a way for the extensions hook to know what assembly it hooks to #5116
Labels
Area: MTP
Belongs to the Microsoft.Testing.Platform core library
Needs: Design
Needs research and proposal for how the feature will be implemented.
Milestone
Summary
Automatic extension registration via hook is limited does not tell the extension into which dll it registers.
This forces mstest to call GetEntryAssembly which is null in native aot.
Look for a way to provide the hooking binary to the hook, so it can use it in a fashion similar to Assembly.GetEntryAssembly(), but without it being null in native aot.
This is also an api that is used by all extensions so it is possibly hard to change.
Background and Motivation
Proposed Feature
Alternative Designs
Similar issue and the aot reasoning is mentioned in #4312 but providing arbitrary assemblies externall is not a goal of this change. Instead the api should just answer the question:
I am installing as extension into a dll, what is that dll?
The text was updated successfully, but these errors were encountered: