[Mono-list] SPAM-LOW: Re: GAC and gmcs problem
charlie at nunit.com
Wed Jan 28 01:53:11 EST 2009
He may be thinking that the using statement should be
sufficient. But of course it's not.
It's only by convention that System.Data is found in system.data.dll.
It would be possible for gmcs to know about that convention and
automatically insert a reference, but that's a bad idea because it
would lock in a particular set of library assemblies.
Once you decide to reference an assembly, it will be found in
the GAC if it is present, but you have to tell gmcs you want
> -----Original Message-----
> From: mono-list-bounces at lists.ximian.com
> [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Chris Howie
> Sent: Tuesday, January 27, 2009 10:19 PM
> To: k1Ll5w1tcH
> Cc: mono-list at lists.ximian.com
> Subject: SPAM-LOW: Re: [Mono-list] GAC and gmcs problem
> On Wed, Jan 28, 2009 at 12:16 AM, k1Ll5w1tcH
> <garriths at gmail.com> wrote:
> > But this still doesn't explain why I have to compile with
> > -r:System.Data.dll, when System.Data is in my GAC?
> Because mcs does not automatically reference everything in the GAC.
> Why should it?
> Chris Howie
> Mono-list maillist - Mono-list at lists.ximian.com
More information about the Mono-list