Ring the GAC

When one assembly is dependent upon another, the CLR manages the loading of the dependent assemblies into the application domain. The CLR expects to find the assembly either listed in a sort of registry for assemblies called the Global Assembly Cache (GAC for short) or using Win32 rules for locating a library on disk (looking in current, windows, and windows system directories, as well as on the path). When deploying an application requiring custom assemblies, therefore, you can either place the assembly in one of these locations or drop them into any old directory and register them in the GAC. GAC registration is the preferred method of deployment when the assemblies are required by multiple disparate applications.

The GAC can be ...

Get Delphi for .NET Developer’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.