Assembly.GlobalAssemblyCache Property

Once you have an assembly loaded, you can use Assembly.GlobalAssemblyCache Property to determine if the assembly is loaded from GAC or not.

I am surprised that not many people know about this property.

Comments (3)

  1. Essam says:

    When I develop DLLs , I usally add some helper files in the same folder for the DLL, like XSLT and config files for example.

    Adding the DLL to the GAC makes me unable to do that any more , I wonder if you can advice about this issue

  2. Why can’t you embed those files as resources inside the assembly?

Skip to main content