forked from dotnet/corert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.msbuild
32 lines (27 loc) · 1.55 KB
/
publish.msbuild
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
<?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="$(PackagesDir)/$(FeedTasksPackage)/$(FeedTasksPackageVersion)/build/$(FeedTasksPackage).targets" />
<PropertyGroup>
<PublishPattern Condition="'$(PublishPattern)' == ''">$(PackageOutputRoot)**\*.nupkg</PublishPattern>
<SymbolsPackagesPattern>$(PackageOutputRoot)**\*.symbols.nupkg</SymbolsPackagesPattern>
</PropertyGroup>
<ItemGroup>
<_PackagesToPublish Include="$(PublishPattern)" Exclude="$(SymbolsPackagesPattern)" />
<_SymbolsPackagesToPublish Include="$(SymbolsPackagesPattern)" />
</ItemGroup>
<Target Name="PublishToAzureBlobFeed">
<Error Condition="'@(_PackagesToPublish)'==''" Text="ItemsToPush for packages is empty." />
<PushToBlobFeed ExpectedFeedUrl="$(ExpectedFeedUrl)"
AccountKey="$(AccountKey)"
ItemsToPush="@(_PackagesToPublish)"
Overwrite="$(PublishOverwrite)" />
</Target>
<Target Name="PublishSymbolsToAzureBlobFeed">
<Error Condition="'@(_SymbolsPackagesToPublish)'==''" Text="ItemsToPush for packages is empty." />
<PushToBlobFeed ExpectedFeedUrl="$(ExpectedFeedUrl)"
AccountKey="$(AccountKey)"
ItemsToPush="@(_SymbolsPackagesToPublish)"
Overwrite="$(PublishOverwrite)" />
</Target>
</Project>