upload file with FTP using nant

前端 未结 6 1575
一生所求
一生所求 2021-02-06 01:15

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.

6条回答
  •  北恋
    北恋 (楼主)
    2021-02-06 01:22

    Working WinSCP example here:

        
            
            
            
            
        
    

    where backup.winscp in above exec is a file with the following content

    option batch abort
    option confirm off 
    open ftp://user:password@ftp.yourhost.com
    put "%1%"
    exit
    

提交回复
热议问题