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
This commit is contained in:
Matt Mitchell 2020-07-17 08:44:45 -07:00
parent a7cf77dd66
commit 7e76b75c65

View file

@ -87,7 +87,7 @@
<CheckSumsToPublish Remove="$(ArtifactsShippingPackagesDir)productVersion.txt.sha" Condition=" '$(OS)' != 'Windows_NT' or '$(Architecture)' != 'x64'" />
<CheckSumsToPublish Remove="$(ArtifactsShippingPackagesDir)*.zip.sha" Condition=" '$(PublishBinariesAndBadge)' == 'false' "/>
<CheckSumsToPublish Remove="$(ArtifactsShippingPackagesDir)*.tar.gz.sha" Condition=" '$(PublishBinariesAndBadge)' == 'false' "/>
<SdkNonShippingPackagesToPublish Include="$(ArtifactsNonShippingPackagesDir)Microsoft.Dotnet.Sdk.Internal.*.nupkg" />
<SdkNonShippingPackagesToPublish Include="$(ArtifactsNonShippingPackagesDir)Microsoft.Dotnet.Sdk.Internal.*.nupkg" Condition="'$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x64'" />
</ItemGroup>
<Target Name="PublishSdkAssetsAndChecksums"
@ -183,6 +183,7 @@
ManifestBuildId="$(BUILD_BUILDNUMBER)"
ManifestCommit="$(BUILD_SOURCEVERSION)"
AssetManifestPath="$(PackagesManifestFilePath)"
PublishFlatContainer="false" />
PublishFlatContainer="false"
Condition="'@(SdkPackagesToPush)' != ''" />
</Target>
</Project>