Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is this Visual Studio post-build event not firing?

I am trying to copy all of my output files from the solution target directory to a shared bin folder but for some reason the files are not being copied. For some reason, what seems like a very simple post-build command is not working for me.

xcopy "$(TargetDir).*" "$(SolutionDir)..\..\..\bin" /Y/I

Here's my directory tree:

- Development
      - bin
      - Clients
          - Interface
              - Services
                  - bin
                      - Debug
                      - Release
              - Host
                  - bin

I need to copy the output from the Services -> bin -> Debug or Release folders to the Development -> bin folder following any successful build. I have tried various combinations of "..\" and none seem to work.

like image 927
William Smith Avatar asked May 02 '12 14:05

William Smith


1 Answers

When I need to trouble shoot post build events I add an ECHO ON, and generally do a DIR so I can see what directory I am in.

like image 105
EvilTeach Avatar answered Sep 22 '22 13:09

EvilTeach