How to convert 'if' condition in NAnt into MSBuild?

Posted by Nam Gi VU on Stack Overflow See other posts from Stack Overflow or by Nam Gi VU
Published on 2010-03-19T14:22:29Z Indexed on 2010/03/19 14:41 UTC
Read the original article Hit count: 224

Filed under:

I have a NAnt script like below:

<if test="${a}>${b}">      
  <call target="target"/>
</if>

What I want is to convert it into MSBuild script. I found that there is tag to write conditions but it is only used for defining property/item.

Can we write 'if' condition in MSBuild? Please help!

© Stack Overflow or respective owner

Related posts about msbuild