[MonoDevelop] References and the GAC

Todd Berman tberman@off.net
Wed, 24 Nov 2004 12:56:53 -0800


You have not installed this properly. For it to resolve properly there
are 1 of 2 things that need to happen.

1) It is in the same directory as mcs.
2) It has a .pc file that has a Libs: line that references it (what mcs
uses for -pkg syntax).

MonoDevelop basically simulates mcs as far as assembly resolving. The
'GAC' is not used at compile time, but we basically simulate it, because
anything in your 'GAC' is referenced at compile time by one of the two
above methods.

In my install (and any install from rpms, etc) Npgsql.dll is in the gac
with a symlink in /usr/lib/mono/1.0. This is where MD finds Npgsql (just
like where mcs would find it).

--Todd

On Wed, 2004-11-24 at 10:29 -0500, Kevin B. wrote:
> Hi,
> 
> (I originally posted a similar question on the mono-list but I believe it
> is more appropriately posted here.)
> 
> I'm was trying to use the Npgsql assembly but it does not appear in the
> Edit References>GAC tab.
> 
> I found that there was no Npgsql.dll on my system so I downloaded
> Npgsql0.7beta3-bin.tar.gz and uncompressed it.
> 
> Then as root I did the following:
> 
> [root@localhost mono]# gacutil -i Npgsql.dll
> Npgsql installed into the gac (/usr/lib/mono/gac)
> 
> [root@localhost mono]# gacutil -l
> The following assemblies are installed into the GAC:
> ...
> Npgsql, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7
> ...
> Number of items = 44
> 
> 
> At this point I open MonoDevelop, clicked on the References Folder in a
> project and choose Edit References.  But when viewing the list in the GAC
> tab I do not see an entry for Npgsql.   (But, as you can see above it
> appears in the gacutil -l .)
> 
> How do I get Npgsql to appear in GAC tab?
> 
> (Idid all of this as root in order to eliminate any permission problems.)
> 
> Thanks,
> 
> 
> 
> 
> 
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>