I am currently looking for a way to load a third party dll (telerik) missing for my prism module when this one is require into my shell.
I have created a boostrapper with a custom ModuleCatalog
My CustomModuleCatolog is in charge to find my modules dll flagged as IModule ans reference them into the managed catalogue.
This works fine.
The only problem is that, when my moduleA starts it will require Telerik.Windows.Controls.gridview. This dll is not referenced into the shell project. I do not want to have to reference not needed DLL into the shell project.
So I am getting an error because this dll is not loaded.
My question is:
Is there an elegant way to load all the third dll when needed by a module (only the missing one)?
Should I load this dependency directly from my CustomModuleCatalogue, or should I load this when my the IModule.Initialize is call? Is there another way to do it?
Thx in advance.