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 it first. Charlie > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Chris Howie > Sent: Tuesday, January 27, 2009 10:19 PM > To: k1Ll5w1tcH > Cc: [email protected] > Subject: SPAM-LOW: Re: [Mono-list] GAC and gmcs problem > > On Wed, Jan 28, 2009 at 12:16 AM, k1Ll5w1tcH > <[email protected]> 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 > http://www.chrishowie.com > http://en.wikipedia.org/wiki/User:Crazycomputers > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
