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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With