nant multitarget support?

Stefan Arn <[email protected]> Wed, 5 Sep 2012 09:18:39 +0000
Newsgroups gmane.comp.windows.dotnet.nant.user
Message-ID <[email protected]>
--===============6279935710530704878==
Content-Language: de-DE
Content-Type: multipart/alternative;
	boundary="_000_C6EF6F049F38424D9D572568EEEA4E1B6D3CC9CEImsSv1imsch_"

--_000_C6EF6F049F38424D9D572568EEEA4E1B6D3CC9CEImsSv1imsch_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I have C# code with 4.0 language features that need a C#4.0 compiler to com=
pile. But the resulting code should run on .NET Framework 3.5. This is poss=
ible with VS2010 by simply selecting the target framework 3.5. But I had no=
 luck with NAnt.

Is it possible to use the 4.0 compiler and target the 3.5 framework? I alre=
ady tried to change the framework configuration in NAnt.exe.config without =
success. I also looked around for an option to specify the compiler exe fil=
e on the csc NAnt task.

What should I do? Any suggestions?

--_000_C6EF6F049F38424D9D572568EEEA4E1B6D3CC9CEImsSv1imsch_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40"><head><meta http-equiv=3DContent-Type content=
=3D"text/html; charset=3Dus-ascii"><meta name=3DGenerator content=3D"Micros=
oft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Sprechblasentext Zchn";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.E-MailFormatvorlage17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.SprechblasentextZchn
	{mso-style-name:"Sprechblasentext Zchn";
	mso-style-priority:99;
	mso-style-link:Sprechblasentext;
	font-family:"Tahoma","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DDE-CH link=3Dblue vli=
nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>I have C# code w=
ith 4.0 language features that need a C#4.0 compiler to compile. But the re=
sulting code should run on .NET Framework 3.5. This is possible with VS2010=
 by simply selecting the target framework 3.5. But I had no luck with NAnt.=
<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNorm=
al>Is it possible to use the 4.0 compiler and target the 3.5 framework? I a=
lready tried to change the framework configuration in NAnt.exe.config witho=
ut success. I also looked around for an option to specify the compiler exe =
file on the csc NAnt task.<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</=
o:p></p><p class=3DMsoNormal>What should I do? Any suggestions?<o:p></o:p><=
/p></div></body></html>=

--_000_C6EF6F049F38424D9D572568EEEA4E1B6D3CC9CEImsSv1imsch_--


--===============6279935710530704878==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
--===============6279935710530704878==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

--===============6279935710530704878==--