[MSBuild] Note when working with Condition

The < and > comparision may be tricky!

Example:

<Target Name="ttt">
<Message Text="1" Condition="2>1" />
<Message Text="22" Condition="2&gt;1" />
<Message Text="a" Condition="2>=2" />
<Message Text="bb" Condition="2&gt;=2" />

<Message Text="1x" Condition="1<2" /> <!--error-->
<Message Text="22x" Condition="1&lt;2" />
<Message Text="ax" Condition="2<=2" /> <!--error-->
<Message Text="bbx" Condition="2&lt;=2" />
</Target>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: