summaryrefslogtreecommitdiff
path: root/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/SdkTasks/PublishBuildAssets.proj
diff options
context:
space:
mode:
Diffstat (limited to '.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/SdkTasks/PublishBuildAssets.proj')
-rwxr-xr-x.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/SdkTasks/PublishBuildAssets.proj36
1 files changed, 36 insertions, 0 deletions
diff --git a/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/SdkTasks/PublishBuildAssets.proj b/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/SdkTasks/PublishBuildAssets.proj
new file mode 100755
index 0000000000..ec4de58cd5
--- /dev/null
+++ b/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/SdkTasks/PublishBuildAssets.proj
@@ -0,0 +1,36 @@
+<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
+<Project Sdk="Microsoft.NET.Sdk" DefaultTargets="Execute">
+ <!--
+ Required variables:
+ ManifestsPath Path to file containing manifest files.
+ BuildAssetRegistryToken Token required to insert metadata into BAR.
+ MaestroApiEndpoint Maestro's endpoint.
+ -->
+ <PropertyGroup>
+ <TargetFramework>net472</TargetFramework>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <PackageReference Include="Microsoft.DotNet.Maestro.Tasks" Version="$(MicrosoftDotNetMaestroTasksVersion)" />
+ </ItemGroup>
+
+ <PropertyGroup>
+ <_MicrosoftDotNetMaestroTasksBaseDir>$(NuGetPackageRoot)microsoft.dotnet.maestro.tasks\$(MicrosoftDotNetMaestroTasksVersion)\tools\</_MicrosoftDotNetMaestroTasksBaseDir>
+ <_MicrosoftDotNetMaestroTasksDir>$(_MicrosoftDotNetMaestroTasksBaseDir)net472</_MicrosoftDotNetMaestroTasksDir>
+ <_MicrosoftDotNetMaestroTasksDir Condition="'$(MSBuildRuntimeType)' == 'Core'">$(_MicrosoftDotNetMaestroTasksBaseDir)netcoreapp2.1</_MicrosoftDotNetMaestroTasksDir>
+ </PropertyGroup>
+
+ <UsingTask TaskName="PushMetadataToBuildAssetRegistry" AssemblyFile="$(_MicrosoftDotNetMaestroTasksDir)\Microsoft.DotNet.Maestro.Tasks.dll"/>
+
+ <Target Name="Execute">
+ <Error Text="The ManifestsPath property must be set on the command line." Condition="'$(ManifestsPath)' == ''" />
+ <Error Text="The BuildAssetRegistryToken property must be set on the command line." Condition="'$(BuildAssetRegistryToken)' == ''" />
+ <Error Text="The MaestroApiEndpoint property must be set on the command line." Condition="'$(MaestroApiEndpoint)' == ''" />
+
+ <PushMetadataToBuildAssetRegistry ManifestsPath="$(ManifestsPath)"
+ BuildAssetRegistryToken="$(BuildAssetRegistryToken)"
+ MaestroApiEndpoint="$(MaestroApiEndpoint)"
+ PublishUsingPipelines="$(PublishUsingPipelines)"
+ RepoRoot="$(RepoRoot)"/>
+ </Target>
+</Project>