For the Command parameter, one can escape the path via ", however, this doesn't work if there is a space in the WorkingDirectory parameter.
Does anyone have a solution?
Perhaps changing my environment HOMEDRIVE\ HOMEPATH setting before calling the build task, but that's horrible and probably not trivial.
No need to escape anything or do anything special. This should work:
<Exec Command="Path_to_some_executable.exe" WorkingDirectory="Path to some directory\with spaces" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With