How to make sure that the AppDomain.CurrentDomain.AssemblyResolve event always fires?

I am trying to use some resolver to handle a resolving error, I found AppDomain.CurrentDomain.AssemblyResolve only works when I use something like AppDomain.CurrentDomain.Load (*); but he refuses to shoot when I use something like Assembly.LoadFrom.

How to make sure that it always works no matter what method I use?

+5
source share
2 answers

. AssemblyResolve , , CLR . , , LoadFrom(), .

+1

, AssemblyResolve Activator.CreateInstance.

0

All Articles