[Mono-dev] Using the System.Linq library

Antonello Provenzano antonello at deveel.com
Fri Apr 6 03:56:58 EDT 2007


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
>



More information about the Mono-devel-list mailing list