10

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

Zain Rizvi
  • 23,586
  • 22
  • 91
  • 133

1 Answers1

19

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

Joseph Yaduvanshi
  • 20,241
  • 5
  • 61
  • 69
Brian Walker
  • 8,658
  • 2
  • 33
  • 35