[Mono-list] GAC and gmcs problem

Jonathan Pryor jonpryor at vt.edu
Wed Jan 28 09:33:50 EST 2009


On Tue, 2009-01-27 at 21:16 -0800, k1Ll5w1tcH wrote:
> But this still doesn't explain why I have to compile with
> -r:System.Data.dll, when System.Data is in my GAC?

Furthermore, it should be noted that -r NEVER looks in the GAC -- for
example, if you have e.g. Mono.Cecil installed in your GAC,
-r:Mono.Cecil will NOT work.

-r only looks for assemblies in two directories:

  - The same directory as (g)mcs.exe, e.g. /usr/lib/mono/{1,2}.0
  - Any directories listed with -L

Otherwise, a full directory name should be used with -r (or use -pkg,
which will indirectly provide -r with a full path).

 - Jon




More information about the Mono-list mailing list