Re: Automatic Properties on 2.0

Sebastien Lambla <[email protected]> Fri, 28 Mar 2008 12:39:11 +0000
Newsgroups gmane.comp.windows.devel.dotnet.clr
Message-ID <[email protected]>
I've used automatic properties happily from the 3.0 compiler to generate =
a
2.0 assembly and see no issue with that. Same goes with extension  =
methods
(provided you add a fake attribute in your class).

Of course you need to *target* 2.0 using the msbuild and compiler =
shipping
in 3.5, otherwise it won't work.

--
SerialSeb
http://serialseb.blogspot.com


-----Original Message-----
From: Discussion of development on the .NET platform using any managed
language [mailto:[email protected]] On Behalf Of Peter =
Ritchie
Sent: 28 March 2008 12:12
To: [email protected]
Subject: Re: [DOTNET-CLR] Automatic Properties on 2.0

Yes, unfortunately it's something you have to live with.  A .NET 2.0
project invokes the .NET 2.0 compiler so you don't get the language
additions in a .NET 2.0 project.

You can, however create a .NET 3.5 class library and use it from a .NET
2.0 project.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This list is hosted by DevelopMentor=AE  http://www.develop.com

View archives and manage your subscription(s) at =
http://discuss.develop.com

No virus found in this incoming message.
Checked by AVG.=20
Version: 7.5.519 / Virus Database: 269.22.1/1345 - Release Date: =
26/03/2008
18:50
=20

No virus found in this outgoing message.
Checked by AVG.=20
Version: 7.5.519 / Virus Database: 269.22.1/1345 - Release Date: =
26/03/2008
18:50
=20

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This list is hosted by DevelopMentor=AE  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com