You want to add something like:
xcopy /Q /Y "$(TargetPath)" "C:pathosomewhere"
to you post-build event on the Build Events tab in the project properties page. The /Y
will stop it from prompting you to confirm an overwrite.
If you also need to copy the .pdb
file, you will need something like this:
xcopy /Q /Y "$(TargetDir)$(TargetName).*" "C:pathosomewhere"
You can see more substitution tokens (the $XXX values) by clicking the Edit Post-build... button in the properties tab and then expanding the Macros>> button.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…