I have a WPF application that references dll from GAC. Is there a way to detect (on startup), if some/all of those dlls are missing?
Currently, if there are missing dlls, the application just crashes. I'm overriding OnStartup, so I thought it could be possible to catch it there. I tried AppDomain.CurrentDomain.UnhandeledException (based on this post Catching missing DLL in XamlParseException), but with no success.
Ideally I would like to show a simple MessageBox informing user, that there are missing dlls.