[Mono-aspnet-list] Using C# 3.0? Error due to 2.0

Alexander M. Batishchev abatishchev at godfather.net.ru
Fri Aug 6 02:29:46 EDT 2010


Hi,

I'm running my ASP.NET application  + 10 libraries under XSP4 and Mono from
trunk without problem.
It contains auto properties, objects and collections initializers, etc.
So just check your version of Mono, is it 1.x ?

Cheers.
Alex

-----Original Message-----
From: mono-aspnet-list-bounces at lists.ximian.com
[mailto:mono-aspnet-list-bounces at lists.ximian.com] On Behalf Of william
leader
Sent: Friday, August 06, 2010 10:23 AM
To: mono-aspnet-list at lists.ximian.com
Subject: Re: [Mono-aspnet-list] Using C# 3.0? Error due to 2.0

To the best of my knowledge there are three options here:

1) Change your code to contain full property implementations. Its not
that much work. This was my choice.

2) Add support for auto-implemented properties to Mono and submit a
patch. Good luck.

3) Wait for someone else to add support for it to Mono. Good Luck.

Actually there is a fourth possibility: 4) Check to see if this is in
the trunk and build your own mono. I don't think this is the case
since a search (
http://www.google.co.uk/search?q=Mono+"Auto-Implemented+Properties" )
didn't turn up any obvious hits.


On Thu, Aug 5, 2010 at 11:35 PM, Dizzy <hohenberger.jakob at gmail.com> wrote:
>
> Hey,
>
> I'm used to implement properties automatically. public Foo {get;set;}.
>
> Can I fix this error
>
> -- Code ---
> error CS1644: Feature `automatically implemented properties' cannot be
used
> because it is not part of the C# 2.0 language specification
> --- Code End ---
>
> without rewriting?
>
> Thanks
> Jakob
>
> Edit: I'm using the latest mono version for Debian Lenny.
> --
> View this message in context:
http://mono.1490590.n4.nabble.com/Using-C-3-0-Error-due-to-2-0-tp2315695p231
5695.html
> Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
> _______________________________________________
> Mono-aspnet-list mailing list
> Mono-aspnet-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>
_______________________________________________
Mono-aspnet-list mailing list
Mono-aspnet-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list



More information about the Mono-aspnet-list mailing list