1 <Project DefaultTargets="PublishPackages">
3 <!-- TODO: move properties imported from here into a common props file -->
4 <!-- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> -->
6 <!-- Use an explicit SDK import so that arcade uses the build
7 configuration computed in dir.common.props. -->
8 <Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
10 <Import Project="$(MSBuildThisFileDirectory)\..\.packages\microsoft.dotnet.build.tasks.feed\$(MicrosoftDotNetBuildTasksFeedVersion)\build\Microsoft.DotNet.Build.Tasks.Feed.targets" />
13 <!-- Set the TargetFramework just to make the SDK happy -->
14 <TargetFramework>net462</TargetFramework>
17 <Target Name="PublishPackages">
20 <PackagesToPublish Include="$(MSBuildThisFileDirectory)\..\artifacts\*.nupkg" />
24 <ItemsToPushToBlobFeed Include="@(PackagesToPublish)" />
27 <Error Condition=" '$(AzureFeedUrl)' == '' " Text="AzureFeedUrl must be set" />
28 <Error Condition=" '$(AzureAccountKey)' == '' " Text="AzureAccountKey must be set" />
29 <Error Condition=" '$(BUILD_REPOSITORY_URI)' == '' " Text="BUILD_REPOSITORY_URI must be set" />
30 <Error Condition=" '$(BUILD_SOURCEBRANCH)' == '' " Text="BUILD_SOURCEBRANCH must be set" />
31 <Error Condition=" '$(BUILD_BUILDNUMBER)' == '' " Text="BUILD_BUILDNUMBER must be set" />
32 <Error Condition=" '$(BUILD_SOURCEVERSION)' == '' " Text="BUILD_SOURCEVERSION must be set" />
35 <AssetManifestFilePath>$(ArtifactsLogDir)AssetManifest\$(AssetManifest)</AssetManifestFilePath>
38 <Message Importance="Low" Text="BUILD_REPOSITORY_URI: $(BUILD_REPOSITORY_URI)" />
40 <PushToBlobFeed ExpectedFeedUrl="$(AzureFeedUrl)"
41 AccountKey="$(AzureAccountKey)"
42 ItemsToPush="@(ItemsToPushToBlobFeed)"
43 ManifestBuildData="Location=$(AzureFeedUrl)"
44 ManifestRepoUri="$(BUILD_REPOSITORY_URI)"
45 ManifestBranch="$(BUILD_SOURCEBRANCH)"
46 ManifestBuildId="$(BUILD_BUILDNUMBER)"
47 ManifestCommit="$(BUILD_SOURCEVERSION)"
48 AssetManifestPath="$(AssetManifestFilePath)" />