Fix unset ZapRelocationType for fixup (#18589)
[platform/upstream/coreclr.git] / Tools / SyncCloudContent.targets
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"/>
4
5   <PropertyGroup>
6     <DownloadDirectory Condition="'$(DownloadDirectory)' == ''">$(PackagesDir)/AzureTransfer</DownloadDirectory>
7   </PropertyGroup>
8
9   <Target Name="DownloadBlobsFromAzureTargets" DependsOnTargets="GetLatestContainerNameFromAzure;DownloadBlobsFromAzure" />
10
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)" />
19     <PropertyGroup>
20       <ContainerName>%(AzureContainerName.Identity)</ContainerName>
21     </PropertyGroup>
22   </Target>
23
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)" />
32   </Target>
33
34 </Project>