7

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.

nicodemus13
  • 2,258
  • 2
  • 19
  • 31

1 Answers1

8

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" />
BryanJ
  • 8,485
  • 1
  • 42
  • 61