FTP only changed files in MSBuild

两盒软妹~` 提交于 2019-12-24 17:24:02

问题


An MSBuild project copies its output to a directory on a server. Each day, only a few files change and most have an older creation date. I can FTP this to a remote server with MSBuild tasks. But how can I do this FTP and only copy the few files that have changed?


回答1:


To do this you'll need something that will manage the sync for you - that is that will keep track of what file is where and update accordingly.

We have used FTPSync to do the file sync bit very tidly for a number of sites.

From MSBuild you can call an external program - so putting the two together will probably work providing your are consistently synching from the same location (otherwise its going to be more interesting!)



来源:https://stackoverflow.com/questions/1881474/ftp-only-changed-files-in-msbuild

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!