I am trying to use some resolver to handle the resolving failure, I found the AppDomain.CurrentDomain.AssemblyResolve only works when I use something like AppDomain.CurrentDomain.Load(*); but it is refusing to fire when I use something like Assembly.LoadFrom.
How to make sure it is always get fired no matter which way I use?
That's pretty unclear. But AssemblyResolve will only fire when it needs to fire because the CLR cannot find the assembly by itself. Which is somewhat likely to not be the case when you use LoadFrom() since you normally specify the full path name of the assembly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With