[Mono-devel-list] Re: Potential GAC implementation ideas.

Jonathan Hogg jonathan at onegoodidea.com
Thu Oct 23 18:28:32 EDT 2003

On 23/10/2003 22:52, Peter Williams wrote:

> But the whole point is not to put assemblies in /usr/lib due to name
> conflicts and general cleanliness, right? I think we all agree that
> hard-coding the system-specific destination path sucks:
> /usr/lib/monogac/HelperAssembly/magicnumbers24134/HelperAssembly.dll
> But we have to tell RPM to put the file *somewhere*. Maybe:
> /usr/lib/MyMonoProgram/HelperAssembly.dll

I'm confused as to why this has to be done. The packager always knows the
version number of the DLL being installed. It's part of the strong name,
just not part of the filename. So make it part of the filename:

    /usr/lib/monogac/HelperAssembly/ is not a magic number, it's a quite clearly defined and well
understood number.

The above is cross-platform to any UNIX and, besides the prefix and
path-separators, Windows.

When the cache tool is run it creates:


and updates


(or something similar).

How, exactly, is the process of installing a DLL into the GAC different to


and running ldconfig?

[The above can of course, also be extended to include the public key portion
of a strong name if that is necessary to differentiate DLLs (can two
identically named/numbered DLLs with differing keys be put in the GAC?).]


Jonathan Hogg

One Good Idea Ltd.


More information about the Mono-devel-list mailing list