Skip to content

Commit

Permalink
Remove exclude of private packages from signing.
Browse files Browse the repository at this point in the history
* In corefx they don't publish private packages to NuGet, WCF does publish to NuGet our one private package.
  • Loading branch information
StephenBonikowsky committed Apr 12, 2018
1 parent b87001e commit ac6ed53
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/publish.proj
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,14 @@
<PropertyGroup>
<PackageDownloadDirectory Condition="'$(DownloadDirectory)' == ''">$(PackagesDir)AzureTransfer\$(ConfigurationGroup)</PackageDownloadDirectory>
<FinalPublishPattern>$(PackageDownloadDirectory)\**\*.nupkg</FinalPublishPattern>
<FinalPublishPrivatePattern>$(PackageDownloadDirectory)\**\*Private*.nupkg</FinalPublishPrivatePattern>
<FinalSymbolsPackagesPattern>$(PackageDownloadDirectory)\**\*.symbols.nupkg</FinalSymbolsPackagesPattern>
<!-- The SignFiles target needs OutDir to be defined -->
<OutDir>$(PackageDownloadDirectory)</OutDir>
</PropertyGroup>

<Target Name="GetPackagesToSign">
<ItemGroup>
<FilesToSign Include="$(FinalPublishPattern)" Exclude="$(FinalPublishPrivatePattern);$(FinalSymbolsPackagesPattern)">
<FilesToSign Include="$(FinalPublishPattern)" Exclude="$(FinalSymbolsPackagesPattern)">
<Authenticode>NuGet</Authenticode>
</FilesToSign>
</ItemGroup>
Expand All @@ -51,10 +50,7 @@

<Target Name="PublishToAzureBlobFeed">
<ItemGroup>
<ItemsToPush Include="$(FinalPublishPrivatePattern)" Exclude="$(FinalSymbolsPackagesPattern)">
<ManifestArtifactData>NonShipping=true</ManifestArtifactData>
</ItemsToPush>
<ItemsToPush Include="$(FinalPublishPattern)" Exclude="@(ItemsToPush);$(FinalSymbolsPackagesPattern)" />
<ItemsToPush Include="$(FinalPublishPattern)" Exclude="$(FinalSymbolsPackagesPattern)" />
</ItemGroup>
<Error Condition="'@(ItemsToPush)'==''" Text="ItemsToPush for packages is empty." />
<PushToBlobFeed ExpectedFeedUrl="$(ExpectedFeedUrl)"
Expand Down

0 comments on commit ac6ed53

Please sign in to comment.