Is it possible to pass a working directory with a space to the MSBuild EXEC team task?

For the parameter, Commandyou can avoid the path through ", however this does not work if the parameter WorkingDirectoryhas a space.

Anyone have a solution?

Perhaps change the setting of my environment HOMEDRIVE\ HOMEPATHbefore invoking the build task, but this is terrible and probably not trivial.

+5
source share
1 answer

There is no need to hide anything or do something special. This should work:

<Exec Command="Path_to_some_executable.exe" WorkingDirectory="Path to some directory\with spaces" />
+5
source

All Articles