using Linq & Extension Methods

View: New views
7 Messages — Rating Filter:   Alert me  

using Linq & Extension Methods

by sagie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.
I am starting to use Mono & MonoDevelop, after 7 years of .Net framework development.
It is very exciting, but I have some problems that requires some help.

I have my c# code, that compiles and works very well in windows. The code contains Linq to object query and extension methods.

I am trying to port it into ubuntu, using MonoDevelop 2.0 stable, but I allways get

Feature `query expressions' cannot be used because it is not part of the C# 2.0 language specification, and
Feature `extension methods' cannot be used because it is not part of the C# 2.0 language specification.

I tried to change the mono profile to 3.5, but in the option page I have only 1.0 and 2.0.

Any Idea?
Maybe somthing else that I need to install?

thanks,
Sagie

Re: using Linq & Extension Methods

by Andy Selvig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Did you go into the project options and set Build->General->Runtime
version to "Mono/.NET 3.5" instead of "Mono/.NET 2.0"?

On Wed, Oct 28, 2009 at 3:11 AM, sagie <sagie.shamay@...> wrote:

>
> Hi.
> I am starting to use Mono & MonoDevelop, after 7 years of .Net framework
> development.
> It is very exciting, but I have some problems that requires some help.
>
> I have my c# code, that compiles and works very well in windows. The code
> contains Linq to object query and extension methods.
>
> I am trying to port it into ubuntu, using MonoDevelop 2.0 stable, but I
> allways get
>
> Feature `query expressions' cannot be used because it is not part of the C#
> 2.0 language specification, and
> Feature `extension methods' cannot be used because it is not part of the C#
> 2.0 language specification.
>
> I tried to change the mono profile to 3.5, but in the option page I have
> only 1.0 and 2.0.
>
> Any Idea?
> Maybe somthing else that I need to install?
>
> thanks,
> Sagie
> --
> View this message in context: http://www.nabble.com/using-Linq---Extension-Methods-tp26090761p26090761.html
> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list@...
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
_______________________________________________
Monodevelop-list mailing list
Monodevelop-list@...
http://lists.ximian.com/mailman/listinfo/monodevelop-list

Re: using Linq & Extension Methods

by sagie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes,
But I don't have Mono/.Net3.5 option at all. Only 1.0 & 2.0.

Andy Selvig wrote:
Did you go into the project options and set Build->General->Runtime
version to "Mono/.NET 3.5" instead of "Mono/.NET 2.0"?

On Wed, Oct 28, 2009 at 3:11 AM, sagie <sagie.shamay@picscout.com> wrote:
>
> Hi.
> I am starting to use Mono & MonoDevelop, after 7 years of .Net framework
> development.
> It is very exciting, but I have some problems that requires some help.
>
> I have my c# code, that compiles and works very well in windows. The code
> contains Linq to object query and extension methods.
>
> I am trying to port it into ubuntu, using MonoDevelop 2.0 stable, but I
> allways get
>
> Feature `query expressions' cannot be used because it is not part of the C#
> 2.0 language specification, and
> Feature `extension methods' cannot be used because it is not part of the C#
> 2.0 language specification.
>
> I tried to change the mono profile to 3.5, but in the option page I have
> only 1.0 and 2.0.
>
> Any Idea?
> Maybe somthing else that I need to install?
>
> thanks,
> Sagie
> --
> View this message in context: http://www.nabble.com/using-Linq---Extension-Methods-tp26090761p26090761.html
> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
_______________________________________________
Monodevelop-list mailing list
Monodevelop-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-list

Re: using Linq & Extension Methods

by Andy Selvig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hmm. Sounds like you need to install smcs (sudo apt-get install
mono-smcs). I think that should do it for you.


On Wed, Oct 28, 2009 at 8:09 AM, sagie <sagie.shamay@...> wrote:

>
> Yes,
> But I don't have Mono/.Net3.5 option at all. Only 1.0 & 2.0.
>
>
> Andy Selvig wrote:
>>
>> Did you go into the project options and set Build->General->Runtime
>> version to "Mono/.NET 3.5" instead of "Mono/.NET 2.0"?
>>
>> On Wed, Oct 28, 2009 at 3:11 AM, sagie <sagie.shamay@...> wrote:
>>>
>>> Hi.
>>> I am starting to use Mono & MonoDevelop, after 7 years of .Net framework
>>> development.
>>> It is very exciting, but I have some problems that requires some help.
>>>
>>> I have my c# code, that compiles and works very well in windows. The code
>>> contains Linq to object query and extension methods.
>>>
>>> I am trying to port it into ubuntu, using MonoDevelop 2.0 stable, but I
>>> allways get
>>>
>>> Feature `query expressions' cannot be used because it is not part of the
>>> C#
>>> 2.0 language specification, and
>>> Feature `extension methods' cannot be used because it is not part of the
>>> C#
>>> 2.0 language specification.
>>>
>>> I tried to change the mono profile to 3.5, but in the option page I have
>>> only 1.0 and 2.0.
>>>
>>> Any Idea?
>>> Maybe somthing else that I need to install?
>>>
>>> thanks,
>>> Sagie
>>> --
>>> View this message in context:
>>> http://www.nabble.com/using-Linq---Extension-Methods-tp26090761p26090761.html
>>> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> Monodevelop-list mailing list
>>> Monodevelop-list@...
>>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>>
>> _______________________________________________
>> Monodevelop-list mailing list
>> Monodevelop-list@...
>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>
>>
>
> --
> View this message in context: http://www.nabble.com/using-Linq---Extension-Methods-tp26090761p26094350.html
> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list@...
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
_______________________________________________
Monodevelop-list mailing list
Monodevelop-list@...
http://lists.ximian.com/mailman/listinfo/monodevelop-list

Re: using Linq & Extension Methods

by Lluis Sanchez Gual :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In Project Options / General, make sure that C# language version is set
to Default.

El dc 28 de 10 de 2009 a les 06:09 -0700, en/na sagie va escriure:

> Yes,
> But I don't have Mono/.Net3.5 option at all. Only 1.0 & 2.0.
>
>
> Andy Selvig wrote:
> >
> > Did you go into the project options and set Build->General->Runtime
> > version to "Mono/.NET 3.5" instead of "Mono/.NET 2.0"?
> >
> > On Wed, Oct 28, 2009 at 3:11 AM, sagie <sagie.shamay@...> wrote:
> >>
> >> Hi.
> >> I am starting to use Mono & MonoDevelop, after 7 years of .Net framework
> >> development.
> >> It is very exciting, but I have some problems that requires some help.
> >>
> >> I have my c# code, that compiles and works very well in windows. The code
> >> contains Linq to object query and extension methods.
> >>
> >> I am trying to port it into ubuntu, using MonoDevelop 2.0 stable, but I
> >> allways get
> >>
> >> Feature `query expressions' cannot be used because it is not part of the
> >> C#
> >> 2.0 language specification, and
> >> Feature `extension methods' cannot be used because it is not part of the
> >> C#
> >> 2.0 language specification.
> >>
> >> I tried to change the mono profile to 3.5, but in the option page I have
> >> only 1.0 and 2.0.
> >>
> >> Any Idea?
> >> Maybe somthing else that I need to install?
> >>
> >> thanks,
> >> Sagie
> >> --
> >> View this message in context:
> >> http://www.nabble.com/using-Linq---Extension-Methods-tp26090761p26090761.html
> >> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
> >>
> >> _______________________________________________
> >> Monodevelop-list mailing list
> >> Monodevelop-list@...
> >> http://lists.ximian.com/mailman/listinfo/monodevelop-list
> >>
> > _______________________________________________
> > Monodevelop-list mailing list
> > Monodevelop-list@...
> > http://lists.ximian.com/mailman/listinfo/monodevelop-list
> >
> >
>

_______________________________________________
Monodevelop-list mailing list
Monodevelop-list@...
http://lists.ximian.com/mailman/listinfo/monodevelop-list

Re: using Linq & Extension Methods

by sagie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Upgrading to Ubuntu 9.04 solved the problem.
Now I have Mono/.Net 3.5 available

Thanks!

Andy Selvig wrote:
Hmm. Sounds like you need to install smcs (sudo apt-get install
mono-smcs). I think that should do it for you.


On Wed, Oct 28, 2009 at 8:09 AM, sagie <sagie.shamay@picscout.com> wrote:
>
> Yes,
> But I don't have Mono/.Net3.5 option at all. Only 1.0 & 2.0.
>
>
> Andy Selvig wrote:
>>
>> Did you go into the project options and set Build->General->Runtime
>> version to "Mono/.NET 3.5" instead of "Mono/.NET 2.0"?
>>
>> On Wed, Oct 28, 2009 at 3:11 AM, sagie <sagie.shamay@picscout.com> wrote:
>>>
>>> Hi.
>>> I am starting to use Mono & MonoDevelop, after 7 years of .Net framework
>>> development.
>>> It is very exciting, but I have some problems that requires some help.
>>>
>>> I have my c# code, that compiles and works very well in windows. The code
>>> contains Linq to object query and extension methods.
>>>
>>> I am trying to port it into ubuntu, using MonoDevelop 2.0 stable, but I
>>> allways get
>>>
>>> Feature `query expressions' cannot be used because it is not part of the
>>> C#
>>> 2.0 language specification, and
>>> Feature `extension methods' cannot be used because it is not part of the
>>> C#
>>> 2.0 language specification.
>>>
>>> I tried to change the mono profile to 3.5, but in the option page I have
>>> only 1.0 and 2.0.
>>>
>>> Any Idea?
>>> Maybe somthing else that I need to install?
>>>
>>> thanks,
>>> Sagie
>>> --
>>> View this message in context:
>>> http://www.nabble.com/using-Linq---Extension-Methods-tp26090761p26090761.html
>>> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> Monodevelop-list mailing list
>>> Monodevelop-list@lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>>
>> _______________________________________________
>> Monodevelop-list mailing list
>> Monodevelop-list@lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>
>>
>
> --
> View this message in context: http://www.nabble.com/using-Linq---Extension-Methods-tp26090761p26094350.html
> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
_______________________________________________
Monodevelop-list mailing list
Monodevelop-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-list

Re: using Linq & Extension Methods

by Michael Hutchinson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Oct 28, 2009 at 9:17 AM, Andy Selvig <ajselvig@...> wrote:
> Hmm. Sounds like you need to install smcs (sudo apt-get install
> mono-smcs). I think that should do it for you.

smcs is the silverlight compiler.


--
Michael Hutchinson
http://mjhutchinson.com
_______________________________________________
Monodevelop-list mailing list
Monodevelop-list@...
http://lists.ximian.com/mailman/listinfo/monodevelop-list