How to Exec Command in MSBuild only if
This is my project
...
<Exec Command='"my.exe"'\>
<Exec Command='"echo 1 > log.txt"'\>
...
What I want to do is execute echo depending on what my.exe "finds"/"say", like a if. What is the proper way to do this?
I'm thinking maybe something like
...
<Exec Command='"my.exe"'\> // will set a environment variables %CheckThis%=1\>
<Exec Command="my.exe" Condition="'$(CheckThis)' == '1'" />
...
What is the proper way to do this?