FTP Activity in Team Build 2010?


  • Hello, is there a FTP Upload funtion in the Team Build 2010, when not how to create a custom FTP Client to upload a webproject on a FTP server?



    Is it better to create a custom Activity which has better error support, or using a Powershell script ?

    Monday, June 07, 2010 12:20 PM


All replies

  • No, there is no built-in activity for FTP upload.

    In general, I'd prefer writing a custom activity when it comes to functionality that I will use in several builds. It is much more user friendly and less error prone
    to use a custom activity than to exeucte a script from source control.


    Blog: Twitter:
    Monday, June 07, 2010 2:44 PM
  • I agree with Jakob that a custom activity is the way to go. Unfortunately I haven't yet seen one for Team Build 2010...

    If you want something to use right away you can also use an existing MSBuild task and integrate that using the MSBuild activity in Team Build 2010. Take a look at the FTP task in this package:

    Monday, June 07, 2010 8:33 PM
  • Hi Mathias, thanks for the link, on the page there is a FtpUploadDirectory Task:


    FtpUploadDirectoryContent Uploads a full directory content to a remote directory.


    In the zip file, i couldn´t find this task. I will try to create an own Activity which has built in a FTP client. Could you give me a good tutorial which you can suggest me?

    Tuesday, June 08, 2010 6:48 AM
  • It's in the latest builds atleast, download the nightly build package and you can get both the build task and the source code.

    If you want more info on how to create a custom build task see this article:

    Tuesday, June 08, 2010 7:11 AM
  • I created a custom activity for Team Build 2010 from this tutorial:



    I have created all and added to source control the XAML and the BuildTask.dll from the bin directory. When i open the XAML from the source control i looked at the position at which i put my custom activity, but here is a red label:

    Activity could not be loaded because of errors in the XAML.

    I added the custom assemblies path in the controller properties to my BuildTask.dll assembly.

    In the Toolbox i can see my BuildTasks.Activities, but i couldn´t place this in the XAML there is a deny symbol when i drag it over.

    Any ideas?

    Tuesday, June 08, 2010 8:21 AM
  • Hi Kernel64,

    Please refer to the link about XAML Load Errors:

    Hope it helps! If you have any concern, please feel free to let me know!

    Best Regards,

    Cathy Kong

    Monday, June 14, 2010 3:01 AM
  • Hi Kernel64,

    I am changing the issue type to "Mark As Answer". If you have more time to look at the issue and provide more information, please feel free to change the issue type back to "Unmark As Answer" by clicking the option at the bellow of the post window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and use by other community members having similar questions.

    Best Regards,

    Cathy Kong.

    Tuesday, June 15, 2010 1:05 AM
  • This is probably no use to you any more, but for anyone else who is having problems with this, I've written a custom activity using WinSCP for dropping builds onto an FTP server. It can be viewed here:

    Hope this helps someone!

    Wednesday, February 29, 2012 2:17 PM