AppDomain.AssemblyResolve Event Tips

added by mcnamaragio
1/4/2012 3:24:35 AM

0 Kicks, 108 Views

AppDomain.AssemblyResolve event can be used to load referenced assemblies at runtime. This can be useful in multiple scenarios: you can use it to load a library from a different location or load a library based on bitness or load a library which is embedded in the executable file. In all cases there are some tips and tricks which can help you to easily implement the event handler and avoid exceptions.