It is difficult to tell from your code sample, but did you check that the <Conditionals>
node is embedded within a <tasks>...</tasks>
node in your project declaration?
In other words:
<project>
<tasks>
<conditional>...</conditional>
</tasks>
</project>
and not
<project>
<conditional>...</conditional>
</project>