Skip to content

Commit 0fac982

Browse files
[release/8.0] Set metadata for .NET release shipping assets in manifest (#4183)
Set metadata for .NET release shipping assets in manifest (#4173) * add publishing props file * set metadata for assets
1 parent 36553f2 commit 0fac982

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

eng/Publishing.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
<PropertyGroup>
3+
<ProducesDotNetReleaseShippingAssets>true</ProducesDotNetReleaseShippingAssets>
4+
</PropertyGroup>
5+
</Project>

src/publish/prepare-artifacts.proj

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@
2828
<PropertyGroup>
2929
<PrepareArtifacts>true</PrepareArtifacts>
3030
</PropertyGroup>
31+
3132
<Import Project="../tools/Sign.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
3233

34+
<Import Project="$(RepositoryEngineeringDir)Publishing.props" Condition="Exists('$(RepositoryEngineeringDir)Publishing.props')" />
35+
3336
<!-- Since this repo doesn't use publish.proj, update the incoming arcade defaults to use MicrosoftDotNet500 -->
3437
<ItemGroup>
3538
<FileExtensionSignInfo Update="@(FileExtensionSignInfo->WithMetadataValue('CertificateName','Microsoft400'))" CertificateName="$(DotNetCertificateName)" />
@@ -49,6 +52,16 @@
4952
PrepareArtifacts=$(PrepareArtifacts)" />
5053
</Target>
5154

55+
<!--
56+
Set metadata for assets that are not marked as NonShipping.
57+
This is used to determine if the asset should be shipped as part of .NET release.
58+
-->
59+
<ItemDefinitionGroup>
60+
<ItemsToPush>
61+
<ManifestArtifactData Condition="'$(ProducesDotNetReleaseShippingAssets)' == 'true'">DotNetReleaseShipping=true</ManifestArtifactData>
62+
</ItemsToPush>
63+
</ItemDefinitionGroup>
64+
5265
<Target Name="PreparePublishToAzureBlobFeed"
5366
AfterTargets="Build"
5467
DependsOnTargets="FindDownloadedArtifacts;SignArtifacts;GenerateChecksums">

0 commit comments

Comments
 (0)