Is it possible to catch the exception when a referenced .dll cannot be found?
For example, I have a C# project with a reference to a third-party dll; if that dll c
You can use AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args) { }
To manually find the assembly if it can't find it automaticaly.