[Mono-dev] Adding a dll to gac

Robert Jordan robertj at gmx.net
Fri Jul 17 06:40:37 EDT 2009


PFJ wrote:
> Hi
> 
> I've added the SharpUSBlib dll to gac using gacutil. However, when I try to
> link to it (using -r:ICSharp.USBlib or -r:SharpUSBlib, all I get back is
> that it is missing some sort of metadata (the report is on my machine at
> home).
> 
> Is there something I'm missing here?

Gmcs does not resolve assemblies from the GAC. Since you've created a
pkg-config for your assembly with gacutil, you can reference it with:

gmcs -pkg:SharpUSBlib ...

> The command line I've used is 
> 
> gacutil -i bin/SharpUSBlib.dll -f -package SharpUSBlib -root /usr/lib

Robert



More information about the Mono-devel-list mailing list