Top Reasons for Installing (or Not) Assemblies to the GAC

As a general rule, installing assemblies to the GAC is something that should be restricted only to particular scenarios. There are obviously situations when you instead want to take advantage of the GAC that can be summarized as follows:

Multiple applications referencing the same assemblies: In this case it can be convenient to have a single copy of assemblies in the GAC instead of providing several copies in the application folder.

Versioning: The GAC can maintain different versions of the same assembly. This problem is solved also by the XCopy deployment, but your company can have a deployment strategy that prefers the GAC.

Security: The GAC can be managed by system administrators ...

Get Visual Basic® 2010 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.