blob: 90c42841dee539a2270ad1c12617c05c4c4fb7f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<Import Project="$(ToolsDir)PublishContent.targets" />
<Import Project="$(ToolsDir)versioning.targets" />
<Import Project="$(PackagesDir)/$(FeedTasksPackage.ToLower())/$(FeedTasksPackageVersion)/build/$(FeedTasksPackage).targets" />
<PropertyGroup>
<PublishPattern Condition="'$(PublishPattern)' == ''">$(PackageOutputRoot)\**\*.nupkg</PublishPattern>
</PropertyGroup>
<ItemGroup>
<_PackagesToPublish Include="$(PublishPattern)" />
</ItemGroup>
<Target Name="CreateContainerName"
DependsOnTargets="CreateVersionFileDuringBuild"
Condition="'$(ContainerName)' == ''">
<PropertyGroup>
<ContainerName>corefx-$(PreReleaseLabel)-$(BuildNumberMajor)-$(BuildNumberMinor)</ContainerName>
</PropertyGroup>
</Target>
<Target Name="Build" DependsOnTargets="CreateContainerName">
<!-- skip uploadToAzure when there are no nupkgs -->
<CallTarget Targets="UploadToAzure" Condition="'@(_PackagesToPublish)' != ''" />
</Target>
<PropertyGroup>
<PackageDownloadDirectory Condition="'$(DownloadDirectory)' == ''">$(PackagesDir)AzureTransfer\$(ConfigurationGroup)</PackageDownloadDirectory>
<FinalPublishPattern>$(PackageDownloadDirectory)\**\*.nupkg</FinalPublishPattern>
<FinalPublishPrivatePattern>$(PackageDownloadDirectory)\**\*Private*.nupkg</FinalPublishPrivatePattern>
<FinalSymbolsPackagesPattern>$(PackageDownloadDirectory)\**\*.symbols.nupkg</FinalSymbolsPackagesPattern>
</PropertyGroup>
<Target Name="PublishToAzureBlobFeed">
<ItemGroup>
<ItemsToPush Include="$(FinalPublishPrivatePattern)" Exclude="$(FinalSymbolsPackagesPattern)">
<ManifestArtifactData>NonShipping=true</ManifestArtifactData>
</ItemsToPush>
<ItemsToPush Include="$(FinalPublishPattern)" Exclude="@(ItemsToPush);$(FinalSymbolsPackagesPattern)" />
</ItemGroup>
<Error Condition="'@(ItemsToPush)'==''" Text="ItemsToPush for packages is empty." />
<PushToBlobFeed ExpectedFeedUrl="$(ExpectedFeedUrl)"
AccountKey="$(AccountKey)"
ItemsToPush="@(ItemsToPush)"
Overwrite="$(PublishOverwrite)"
ManifestName="$(GitHubRepositoryName)"
ManifestBuildId="$(ManifestBuildId)"
ManifestBranch="$(ManifestBranch)"
ManifestCommit="$(ManifestCommit)" />
</Target>
<Target Name="PublishSymbolsToAzureBlobFeed" Condition="'$(PublishSymbols)' == 'true'" >
<ItemGroup>
<ItemsToPush Include="$(FinalSymbolsPackagesPattern)" />
</ItemGroup>
<Error Condition="'@(ItemsToPush)'==''" Text="ItemsToPush for symbols is empty." />
<PushToBlobFeed ExpectedFeedUrl="$(ExpectedFeedUrl)"
AccountKey="$(AccountKey)"
ItemsToPush="@(ItemsToPush)"
Overwrite="$(PublishOverwrite)"
ManifestName="$(GitHubRepositoryName)"
ManifestBuildId="$(ManifestBuildId)"
ManifestBranch="$(ManifestBranch)"
ManifestCommit="$(ManifestCommit)" />
</Target>
</Project>
|