The Global Assembly Cache
Loaded with knowledge of strong naming, we’re ready to tackle the Global Assembly Cache (GAC), which provides a way to share assemblies across applications in a machine-wide manner (hence the world global). For assemblies to be stored in the GAC, they have to be strong name signed.
Up to now, we’ve always deployed assemblies privately in an application folder. As you will see later in the section, “How Assemblies Get Loaded at Runtime,” there are different places where the CLR looks for a referenced assembly, one of which is the current folder. Both weak- and strong-named assemblies can be deployed privately, but only strong-named assemblies can go in the GAC.
Inspecting the GAC
A good starting point for our exploration ...
Get C# 4.0 Unleashed 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.