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

I am trying to copy all my output files from the solution target directory to the shared bin folder, but for some reason the files are not copied. For some reason, some very simple post-build command doesn't work for me.

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

Here is my directory tree:

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

I need to copy the output from the Service Folders → bin → Debug or Release to the Development → bin folder after any successful build. I tried various combinations of ".." and no one works.

+3
source share
2 answers

When I need to worry about post post build events I add ECHO ON and usually do DIR so that I can see which directory I am in.

+6
source

. Microsoft Visual Studio Professional 2017 (VisualStudio/15.0.0-RTW + 2622.4).

, -, . Visual Studio, .

Visual Studio, Post-Build Event . , .

0

All Articles