[ nant-Bugs-3017279 ] The msbuild Task Doesn't Honor If Statements with Properties

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nant.devel
Message-ID <[email protected]>
Bugs item #3017279, was opened at 2010-06-16 15:25
Message generated for change (Tracker Item Submitted) made by j_newton
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3017279&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tasks
Group: 0.90
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: jnewton (j_newton)
Assigned to: Nobody/Anonymous (nobody)
Summary: The msbuild Task Doesn't Honor If Statements with Properties

Initial Comment:
I am using the msbuild task like so:

<msbuild project="blah.csproj">
	<property name="Configuration" value="Debug" if="${debug}" />
	<property name="Configuration" value="Release" if="${ship}" />     
	<property name="Platform" value="${project.platform}" />
        <property name="Target" value="Build" />
 </msbuild>
 
I have noticed that the Configuration property is always set to 'Release' in my case because of its order. The if statement seems to be ignored.  If I switch the order of the Configuration properties around to have Debug second, then the Configuration property is set to debug.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3017279&group_id=31650

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.