I think the easiest way is to define a sensible default for your MsBuild solution and let it be overriden by developers on an as needed basis. Asking for bash
or git
to be on %PATH%
is a reasonable default hence you could describe it as such
<PropertyGroup>
<BashCommand Condition="'$(BashCommand)' == ''">bash</BashCommand>
</PropertyGroup>
This way any developer who wanted to override the setting could do so by defining the value before importing the core MsBuild files