1 <Project ToolsVersion="12.0" DefaultTargets="DownloadBlobsFromAzureTargets" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2 <UsingTask TaskName="DownloadFromAzure" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.CloudTestTasks.dll"/>
3 <UsingTask TaskName="ListAzureContainers" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.CloudTestTasks.dll"/>
6 <DownloadDirectory Condition="'$(DownloadDirectory)' == ''">$(PackagesDir)/AzureTransfer</DownloadDirectory>
9 <Target Name="DownloadBlobsFromAzureTargets" DependsOnTargets="GetLatestContainerNameFromAzure;DownloadBlobsFromAzure" />
11 <!-- Grab latest azure container if a specific azure container is not specified -->
12 <Target Name="GetLatestContainerNameFromAzure" Condition="'$(ContainerName)' == ''">
13 <ListAzureContainers AccountName="$(CloudDropAccountName)"
14 AccountKey="$(CloudDropAccessToken)"
15 Prefix="$(ContainerNamePrefix)">
16 <Output TaskParameter="ContainerNames" ItemName="AzureContainerName" />
17 </ListAzureContainers>
18 <Message Importance="Low" Text="Container names: %(AzureContainerName.Identity)" />
20 <ContainerName>%(AzureContainerName.Identity)</ContainerName>
24 <Target Name="DownloadBlobsFromAzure" Condition="'$(ContainerName)' != ''">
25 <DownloadFromAzure AccountName="$(CloudDropAccountName)"
26 AccountKey="$(CloudDropAccessToken)"
27 ContainerName="$(ContainerName)"
28 BlobNamePrefix="$(BlobNamePrefix)"
29 BlobNameExtension="$(BlobNameExtension)"
30 DownloadDirectory="$(DownloadDirectory)"
31 DownloadFlatFiles="$(DownloadFlatFiles)" />