Can you perform a case-insensitive string comparison in MSBuild?

Viewed 8154

I have the following code in my MSBuild project file:

<Error Text="Some Text" Condition="'$(StringName)' != 'Test'"/>

The string comparison here is case-sensitive, so when $(StringName) is something like 'test', the condition is not met.

How can I change the condition so that 'test' also meets the comparison? Is there any case-insensitive comparison function available in MSBuild?

4 Answers
Related