[Mono-dev] Using the System.Linq library

Antonello Provenzano antonello at deveel.com
Fri Apr 6 04:19:46 EDT 2007


Atsushi,

Thank you for the explanation: I've never tried using those references
outside the mcs compiling context (I'm writing a
System.Data.Linq.Design and I needed both, but I was int the project
context), so I didn't know it wasn't a non-needed definition outside.

Cheers.
Antonello


On 4/6/07, Atsushi Eno <atsushi at ximian.com> wrote:
> I don't think this issue is about how to build System.Core.dll itself.
> It does not
> apply to *users* of the linq libraries. PROFILE=net_2_0 is only about how
> to build assemblies in mcs, so that's really irrelevant once you built and
> installe mono and mcs successfully.
>
> (If the build and install were unsuccessful, the -r option would be regarded
> as invalid and it will be reported in prior to nonexistent members.)
>
> Atsushi Eno
>
> Antonello Provenzano wrote:
> > Atsushi,
> >
> >> No, you don't have to add something special either in the source or
> >> in the
> >> compiler options. The command line should be fine (even -r might not
> >> be required).
> >
> > Personally when I try to build some library referencing System.Core or
> > System.Data.Linq I have to define the profile 2.0 (PROFILE=net_2_0),
> > otherwise it is not able to compile.
> >
> >
> > On 4/6/07, Atsushi Eno <atsushi at ximian.com> wrote:
> >> No, you don't have to add something special either in the source or
> >> in the
> >> compiler options. The command line should be fine (even -r might not
> >> be required).
> >>
> >> Make sure that the method you are going to use is already implemented.
> >>
> >> I believe that we don't need extraneous 3.0 build loop until we are
> >> ready
> >> to start .NET 3.5 compatibility stack (which involves changes to
> >> existing
> >> libraries).
> >>
> >> Atsushi Eno
> >>
> >>
> >> Antonello Provenzano wrote:
> >> > Mark,
> >> >
> >> > LINQ functions are under the profile 2.0 (I don't know why still don't
> >> > have 3.0): to compile it you just have to add the PROFILE=net_2_0
> >> > directive to the compilation.
> >> >
> >> > Cheers.
> >> > Antonello
> >> >
> >> >
> >> > On 4/3/07, Mark IJbema <mark at ijbema.xs4all.nl> wrote:
> >> >
> >> >> Hi,
> >> >>
> >> >> I'm trying to use the System.Linq library, but i don't know how.
> >> It's in
> >> >> System.Core, so i used:
> >> >>
> >> >> gmcs -langversion:linq -r:System.Core Bla.cs
> >> >> gmcs -langversion:linq
> >> -r:/home/mark/local/lib/mono/2.0/System.Core.dll Bla.cs
> >> >>
> >> >> On the file:
> >> >>
> >> >> http://ijbema.home.fmf.nl/Bla.cs
> >> >>
> >> >> Can anyone tell me how to compile this file so i can use the provided
> >> >> extension methods in Enumerable.cs?
> >> >>
> >> >> Regards,
> >> >>
> >> >> Mark
> >> >>
> >> >> PS. I've already asked on IRC and tried to google it, but both to no
> >> >> avail
> >> >> _______________________________________________
> >> >> Mono-devel-list mailing list
> >> >> Mono-devel-list at lists.ximian.com
> >> >> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> >> >>
> >> >>
> >> > _______________________________________________
> >> > Mono-devel-list mailing list
> >> > Mono-devel-list at lists.ximian.com
> >> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> >> >
> >> >
> >>
> >> _______________________________________________
> >> Mono-devel-list mailing list
> >> Mono-devel-list at lists.ximian.com
> >> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> >>
> >
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



More information about the Mono-devel-list mailing list