上传文件使用楠FTP [英] upload file with FTP using nant

查看:218
本文介绍了上传文件使用楠FTP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有,我用它来建立我的.NET项目的楠脚本,我想看看是否有一种方法使用FTP任务上传导致组件一些远程文件夹。

I have an NAnt script that I use to build my .NET project, and I'm looking to see if there is a way to upload the resulted assemblies to some remote folder using an FTP task.

我找不到任何好的例子在线,我想知道如果有人知道如何做到这一点,如果这是可行的。

I couldn't find any good example online, and I'm wondering if anyone knows how to do it, if it's doable at all.

FYI:我在Windows计算机上运行它,如果它使任何区别。

FYI: I'm running it on a windows machine, if it makes any difference.

推荐答案

您可以使用 的WinSCP作为的在南特 <$ C控制台应用程序 $ C>&LT; EXEC&GT; 任务。使用WinSCP的会给你获得额外的好东西像同步

You could use WinSCP as console application in a NAnt <exec> task. Using WinSCP will give You access to extra goodies like synchronization.

这就是我们正在做的,它的工作原理就像一个魅力。

That's what we are doing and it works like a charm.

这篇关于上传文件使用楠FTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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