[Mono-dev] [Beginners] Problem to do a simple makefile

Jonathan Pryor jonpryor at vt.edu
Mon Sep 10 12:38:17 EDT 2007


On Mon, 2007-09-10 at 17:50 +0200, Marcos Cobeña Morián wrote:
> Also, assemblies installed on GAC can be referenced directly without
> copying files to your output path.

This is incorrect.  Assemblies in the same directory as mcs.exe/gmcs.exe
can be referenced directly without copying files to your output path --
which is where System.dll, mscorlib.dll, etc. are located -- but you
_cannot_ reference arbitrary GAC-installed assemblies in this fashion.

(Permitting this was debated at one point, but it has a fatal flaw:
which version do you compile against when multiple different versions of
the same assembly are in the GAC, e.g. System.dll for .NET 1.1 vs
for .NET 2.0?  Soon afterward the -pkg: command-line argument was added
so that you didn't need private copies of everything, but could use a
system-wide copy instead...)

 - Jon





More information about the Mono-devel-list mailing list