Tuesday, August 01, 2006

Sharing .Net Assemblies Without GAC'ing Them (via AssemblyResolve Event)

DevCity.Net - Sharing libraries without placing them to the GAC

"You may want to use this when, for example, you want to keep a few libraries with some business login on a remote file server on the network and have the ability to easily update these libraries without sending their copies to all users of an application. Or Maybe you may want to share a few libraries between several applications on a computer to quickly update the libraries in one place, but you can not use GAC for some reason.

How to implement

Every time the .NET runtime cannot find the necessary library in an application directory or GAC it raises a special event - AssemblyResolve - of the Application object. A developer can subscribe to this event to implement custom logic. ..."


A short How To on using the AssemblyResolve event to access/share assemblies without using the GAC...

No comments: