Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to pass a workingdirectory with a space to MSBuild EXEC command task?

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.

like image 572
nicodemus13 Avatar asked Mar 05 '12 13:03

nicodemus13


1 Answers

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" />
like image 114
BryanJ Avatar answered Oct 07 '22 05:10

BryanJ