Is there any MSbuild task to check if a string contains another string (similar to string.contains)

If you use MSBuild 4, you could use Property function

<Import Project="A.proj" 
        Condition="$(BuildDefinition.Contains('Dist Staging to Dev'))"/>

(More info on Property function)

Leave a Comment