Build Events in VS
- Set environment variable and use it post-build
- Create new environment variable EXECUTION_ROOT provide file path to it
- Add the following to the post-build event, and it will copy all the files in Output directory to the given path EXECUTION_ROOT.
- This speed-up executing a project when you have multiple DLLs or libs
- XCOPY "$(OutDir)*.*" "$(EXECUTION_ROOT)plugins" /S /Y
- Copy output files (dll/lib/pdb)to execution location after build is completed
- Macros can be used aswell in build events
- $(OutDir)
- $(EXECUTION_ROOT) - environment variable
- $(ProjectDir)
- $(SolutionDir)