[System.Private.CoreLib] Update public APIs
[mono-project.git] / eng / publishwitharcade.proj
blobbbadd124acc8b1777ca3d2c26a9b51b942260341
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" />
12   <PropertyGroup>
13     <!-- Set the TargetFramework just to make the SDK happy -->
14     <TargetFramework>net462</TargetFramework>
15   </PropertyGroup>
17   <Target Name="PublishPackages">
19     <ItemGroup>
20       <PackagesToPublish Include="$(MSBuildThisFileDirectory)\..\artifacts\*.nupkg" />
21     </ItemGroup>
23     <ItemGroup>
24       <ItemsToPushToBlobFeed Include="@(PackagesToPublish)" />
25     </ItemGroup>
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" />
34     <PropertyGroup>
35       <AssetManifestFilePath>$(ArtifactsLogDir)AssetManifest\$(AssetManifest)</AssetManifestFilePath>
36     </PropertyGroup>
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)" />
49   </Target>
51 </Project>