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
- I want to set the application offline while uploading files using an app_offline.htm file.
- I want a backup of the site, just in case
- I want to delete everything without removing the app_offline.
- I want to FTP my site that has been pre-compiled.
- I want to remove the application offline.
- I want to test my site.
- I may need to rollback.
- Sometimes I just want to add a downloadable package to the site without any functional changes.
- 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 :-)