$(SolutionDir) in MS VisualStudio Build events

616 views Asked by At
XCOPY /Y /E "$(SolutionDir)CopyOnBuild\*.*" ".\" 

is the command right now. Which tell that the directory to copy files is at same level where the sln is. My Question is: I want to copy the files to a directory which is one level above the solution directory. How the command should be?

1

There are 1 answers

1
Vivek Rathod On

If you are trying to change the destination dir, and make it one level up, try putting two dots instead of one:

XCOPY /Y /E "$(SolutionDir)CopyOnBuild\*.*" "..\"