From a7cf77dd667e4fd560083bc1acbbe02c60c74b89 Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Thu, 16 Jul 2020 13:38:34 -0700 Subject: [PATCH 1/2] Publish the SDK sentinel package as a package (#8012) --- eng/Publishing.props | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/eng/Publishing.props b/eng/Publishing.props index 568312d2e..de5617d4f 100644 --- a/eng/Publishing.props +++ b/eng/Publishing.props @@ -50,9 +50,11 @@ $(AssetManifestFileName)-$(AGENT_JOBNAME) $(AssetManifestFileName)-$(Architecture) $(AssetManifestFileName)-checksums + $(AssetManifestFileName)-packages $(ArtifactsLogDir)AssetManifest\$(AssetManifestFileName).xml $(ArtifactsLogDir)AssetManifest\$(ChecksumsAssetManifestFileName).xml + $(ArtifactsLogDir)AssetManifest\$(PackagesManifestFileName).xml $(ArtifactsDir)..\DotnetAssetsTmpDir\$([System.Guid]::NewGuid()) $(ArtifactsDir)..\ChecksumAssetsTmpDir\$([System.Guid]::NewGuid()) @@ -74,6 +76,7 @@ Condition=" '$(PublishBinariesAndBadge)' == 'true' and '$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x64'" /> + @@ -84,6 +87,7 @@ + $(BlobStoragePartialRelativePath)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)')) NonShipping=true + + + NonShipping=true + $(BlobStoragePartialRelativePath)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)')) @@ -165,5 +173,16 @@ ManifestCommit="$(BUILD_SOURCEVERSION)" AssetManifestPath="$(ChecksumsAssetManifestFilePath)" PublishFlatContainer="true" /> + + + From 7e76b75c653b74dd9525bfa7b586a398fa5b4a7d Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Fri, 17 Jul 2020 08:44:45 -0700 Subject: [PATCH 2/2] Only publish Microsoft.DotNet.Sdk.Internal once (#8016) Otherwise we run into a publishing check that ensures that there are no duplicates. Also don't push if the packages itemgroup is empty --- eng/Publishing.props | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eng/Publishing.props b/eng/Publishing.props index de5617d4f..9999c71ee 100644 --- a/eng/Publishing.props +++ b/eng/Publishing.props @@ -87,7 +87,7 @@ - + + PublishFlatContainer="false" + Condition="'@(SdkPackagesToPush)' != ''" />