FtpTask not quite right

I just wanted to add FtpTask to my msbuild scripts. The idea being that I could add automatic upload of files to my website. Want I ideally want is

  1. I want to set the application offline while uploading files using an app_offline.htm file.
  2. I want a backup of the site, just in case
  3. I want to delete everything without removing the app_offline.
  4. I want to FTP my site that has been pre-compiled.
  5. I want to remove the application offline.
  6. I want to test my site.
  7. I may need to rollback.
  8. Sometimes I just want to add a downloadable package to the site without any functional changes.
  9. I am also not really sure this should be part of the Build Process, and certainly not part of the Continuous Integration process, so I really should have other ways of running this as well.

Unfortunately FtpTask doesn't quite fit my needs, so in the worst tradition of reuse I am going to write my own.

  • I need to backup the entire site, so I need to download as well as upload
  • I need to delete all files except...
  • I want to upload (same as FtpTask )
  • FtpTask fails to login to my provider and I can't see why. I want something to help me prepare my FtpTask msbuild statement so it works.
  • I think I want to encrypt my password in the msbuild file (nice to have?)
  • I want to be able to run this outside of msbuild as well

I'll let you know how I get on :-)

Add comment

  Country flag


  • Comment
  • Preview
Loading