I'm trying to create a post build file copy step in VS2010 which handles path macros when they have embedded spaces. I've tried surrounding the copy commands in double quotes but I get error from when copy is invoked if $(SolutionDir)
contains a space. the echoed command line in the error message does not show the double quotes.
copy "$(SolutionDir)$(Configuration)\*" "$(TargetDir)"
I also tried separately \"
and ""
but both of these cause the 2 character escape sequence to appear in the echoed command line? How does one properly escape a double quote in a build step?
%22
instead of"
– Idiomorphic"$(SolutionDir)$(Configuration)*"
should probably have a backslash between $(Configuration) and the asterisk. – Fortin