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




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.


Required parameter that ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.