visual studio - How to use xcopy to only copy files if they are newer? -



visual studio - How to use xcopy to only copy files if they are newer? -

i have many web applications in visual studio solution.

all have same post build command:

xcopy "$(targetdir)*.dll" "d:\project\bin" /i /d /y

it useful avoid replacing newer files old ones (e.g. accidentally add together reference old version of dll).

how can utilize xcopy replace old files newer dll files generated visual studio?

from typing "help xcopy" @ command line:

/d:m-d-y copies files changed on or after specified date. if no date given, copies files source time newer destination time.

so using xcopy replace old files new ones. if that's not happening, may have swap positions of /i , /d switches.

visual-studio xcopy post-build-event

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -