[Mono-dev] Resolving dependencies while compiling

Robert Jordan robertj at gmx.net
Wed May 20 09:02:38 EDT 2009

paszczi wrote:
> Hi!
> I recently found very annoying thing about mono compiler. Let's say
> that we have the following file structure
> lib/X/X.dll lib/Y/Y.dll
> Where X.dll depends on Y.dll Now I try to compile project Z which
> references X.dll and Y.dll. While compiling, gmcs throws error that
> the assembly referenced from X.dll: Y.dll,... could not be loaded
> because it was neither found in GAC nor in the lib/X/ directory. One
> may think: "Hey why the hell you don't put those libs in GAC" - the

Neither gmcs nor csc nor VS.NET are resolving references
from the GAC.

> The option of putting all libs together is... well it creates a lot
> of mess. VS compiler somehow manages to resolve those dependencies
> (looking in other directories or doing checks after everything was
> put in single location during compilation maybe?) and doesn't throw

VS.NET is feeding csc with the proper command line options that
are also supported by mcs. See its man page.


More information about the Mono-devel-list mailing list