Can you perform a case-insensitive string comparison in MSBuild?
msbuild
Solution
No, there's not. You'd have to write your own.
Problem
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?