I'm trying to use Gnu.Getopt with mono. Following other questions here, I have done:
% gacutil -i .../gnu.getopt.net-0.9.1/Gnu.Getopt/bin/Release/Gnu.Getopt.dll
which works:
% gacutil -l | grep Gnu.Getopt
Gnu.Getopt, Version=0.9.1.24287, Culture=neutral, PublicKeyToken=d014b4ccdc53511a
but mono can't find it:
% grep Gnu Program.cs
using Gnu.Getopt;
% mcs Program.cs
Program.cs(4,7): error CS0246: The type or namespace name `Gnu' could not be found. Are you missing an assembly reference?
Compilation failed: 1 error(s), 0 warnings
Giving an explicit path to the DLL works fine:
% mcs -r:.../gnu.getopt.net-0.9.1/Gnu.Getopt/bin/Release/Gnu.Getopt.dll Program.cs
%
What am I missing?
Update
I noticed that /usr/lib/mono/4.5
has symbolic links to everything in /usr/lib/mono/gac
(e.g. System.Core.dll
-> ../gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll
). I inserted a symbolic link to Gnu.Getopt.dll
, but the symptoms persist.