1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
5 <Import Project="$(PackagesDir)/$(FeedTasksPackage.ToLower())/$(FeedTasksPackageVersion)/build/$(FeedTasksPackage).targets" />
8 <PackagesPattern Condition="'$(PackagesPattern)' == ''">$(PackagesBinDir)pkg\*.nupkg</PackagesPattern>
9 <TestNativeBinariesPattern Condition="'$(TestNativeBinariesPattern)' == ''">$(OutputPath)\bin\**</TestNativeBinariesPattern>
10 <SymbolsPackagesPattern Condition="'$(SymbolPackagesPattern)' == ''">$(PackagesBinDir)symbolpkg\*.nupkg</SymbolsPackagesPattern>
11 <PublishFlatContainer Condition="'$(PublishFlatContainer)' == ''">true</PublishFlatContainer>
15 <ContainerName>$(ContainerName.Replace(".","-"))</ContainerName>
16 <AccountName>$(CloudDropAccountName)</AccountName>
17 <AccountKey>$(CloudDropAccessToken)</AccountKey>
20 <Target Name="PublishPackages" Condition="'$(__PublishPackages)' == 'true' and ('$(OfficialPublish)' != 'true' or '$(__BuildType)' == 'Release')">
22 <ExpectedFeedUrl>https://$(AccountName).blob.core.windows.net/$(ContainerName)/$(RelativePath)index.json</ExpectedFeedUrl>
25 <ItemsToPush Remove="*.nupkg" />
26 <ItemsToPush Include="$(PackagesPattern)" Exclude="$(SymbolsPackagesPattern)"/>
28 <PushToBlobFeed ExpectedFeedUrl="$(ExpectedFeedUrl)"
29 AccountKey="$(AccountKey)"
30 ItemsToPush="@(ItemsToPush)"
31 PublishFlatContainer="$(PublishFlatContainer)"
32 Overwrite="$(OverwriteOnPublish)"
33 IndexDirectory="$(__IntermediatesDir)"/>
36 <Target Name="PublishSymbolPackages" Condition="'$(__PublishSymbols)' == 'true' and ('$(OfficialPublish)' != 'true' or '$(__BuildType)' == 'Release')">
38 <ExpectedFeedUrl>https://$(AccountName).blob.core.windows.net/$(ContainerName)/$(RelativePath)index.json</ExpectedFeedUrl>
41 <ItemsToPush Remove="*.nupkg" />
42 <ItemsToPush Include="$(SymbolsPackagesPattern)"/>
44 <PushToBlobFeed ExpectedFeedUrl="$(ExpectedFeedUrl)"
45 AccountKey="$(AccountKey)"
46 ItemsToPush="@(ItemsToPush)"
47 PublishFlatContainer="$(PublishFlatContainer)"
48 Overwrite="$(OverwriteOnPublish)" />
51 <Target Name="PublishTestNativeBinaries" Condition="'$(PublishTestNativeBins)' == 'true' and '$(OfficialPublish)' != 'true'">
53 <RelativePath Condition="'$(RelativePath)' == ''">$(__BuildType)/TestNativeBins</RelativePath>
54 <ExpectedFeedUrl>https://$(AccountName).blob.core.windows.net/$(ContainerName)/$(RelativePath)/index.json</ExpectedFeedUrl>
57 <ItemsToPush Remove="*.nupkg" />
58 <ItemsToPush Include="$(TestNativeBinariesPattern)"/>
60 <PushToBlobFeed ExpectedFeedUrl="$(ExpectedFeedUrl)"
61 AccountKey="$(AccountKey)"
62 ItemsToPush="@(ItemsToPush)"
63 PublishFlatContainer="$(PublishFlatContainer)"
64 Overwrite="$(OverwriteOnPublish)" />
68 <Target Name="Build" DependsOnTargets="PublishPackages;PublishSymbolPackages;PublishTestNativeBinaries"/>