Donnerstag, 14. Februar 2013

What to do if dependency injection complains: especially Unity!!

Well, Unity simply sucks up to a certain version. It fails to get the assembly and complains with: Assembly can't be found. -- yeah, but which assembly, asshole???
Slashdot said something about that here.
That statement below catches such events and lets you know something. If it helps?
AppDomain.CurrentDomain.AssemblyResolve +=
          new ResolveEventHandler(CurrentDomain_AssemblyResolve);

Keine Kommentare:

Kommentar veröffentlichen