FTP仅在MSBuild中更改了文件 [英] FTP only changed files in MSBuild

查看:71
本文介绍了FTP仅在MSBuild中更改了文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个MSBuild项目将其输出复制到服务器上的目录中.每天只有很少的文件更改,而大多数文件的创建日期更早. 我可以使用MSBuild任务通过FTP将其传输到远程服务器.但是,我该如何执行FTP操作,而仅复制一些已更改的文件?

解决方案

要执行此操作,您将需要一些可以为您管理同步的内容-即可以跟踪文件的位置并进行相应的更新.

我们已经使用 FTPSync 非常整齐地对数字进行文件同步网站.

您可以从MSBuild调用一个外部程序-如果将您从同一位置持续进行同步,则将两者组合在一起可能会起作用(否则它将变得更加有趣!)

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?

解决方案

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!)

这篇关于FTP仅在MSBuild中更改了文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆