lundi 18 février 2019

Get Assembly where instance is declared in XAML

I have a framework.dll, customerFramework.dll and customer.exe.

Inside of the framework.dll is a customControl declared which can be placed in customerFramework.dll or in customer.exe.


What I want to know is the assembly name inside of the customControl, where the customControl has been placed.

If the customControl is placed in customerFramework.dll and I use the Assembly.() methods, I get the wrong informations

  • GetEntryAssembly(): customer.exe
  • GetCallingAssembly(): framework.dll
  • GetExecutingAssembly(): framework.dll

Is there a hidden function to get this information?





Aucun commentaire:

Enregistrer un commentaire