Zipping Output Files, Then Uploading to an Ftp Site

In this sample, the files in the output folder are first compressed into a zip file and then uploaded to an ftp site. This sample uses these tasks from third parties: DateTime, Zip, and FtpUpload. The first task is from the MSBuild Extension Pack and the other two from the MSBuild Community Tasks. The parameters for those tasks are outlined in Table 9-1, Table 9-2, and Table 9-3.

Table 9-1. DateTime Task Parameters

Name

Description

TaskAction

Required parameter that describes what action the task should perform. Possible values are Get and GetElapsed. Get will get the current date time in the provided format. GetElapsed will return the elapsed time in the format provided.

Format

Required parameter that ...

Get Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.