How do you use MSBuild less than / greater than conditions?
Asked Answered
W

1

12

How do you do less than or greater than in MSBuild conditions? I've tried the following variations both with and without single quotes surrounding the values, but no dice

<PropertyGroup Condition="$(Var1) > 50">

<PropertyGroup Condition="$(Var1) &gt 50">

Can someone please tell me what I'm missing?

Thanks

Worlock answered 22/2, 2011 at 0:28 Comment(1)
XML entities require a semicolon.Scripture
B
21

To encode greater than use &gt; To encode less than use &lt;

Buddhology answered 22/2, 2011 at 1:48 Comment(2)
+1 Also, MSDN has a reference for MSBuild and available conditions: msdn.microsoft.com/en-us/library/7szfhaft.aspxCalcific
Thanks. I saw that msbuld reference but didn't notice the semicolons at the endWorlock

© 2022 - 2024 — McMap. All rights reserved.