Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 5318e32

Browse files
authored
Enable MicroBuild Signing in CoreClr 1.0.0 (#17940)
* Enable MicroBuild Signing in CoreClr 1.0.0 * Remove private pattern
1 parent 0a60881 commit 5318e32

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/publish.proj

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,28 @@
2323
<PublishPattern Condition="'$(PublishPattern)' == ''">$(PackagesBinDir)**\*.nupkg</PublishPattern>
2424
</PropertyGroup>
2525

26+
<PropertyGroup>
27+
<PackageDownloadDirectory Condition="'$(DownloadDirectory)' == ''">$(PackagesDir)AzureTransfer\$(ConfigurationGroup)</PackageDownloadDirectory>
28+
<FinalPublishPattern>$(PackageDownloadDirectory)\**\*.nupkg</FinalPublishPattern>
29+
<FinalSymbolsPackagesPattern>$(PackageDownloadDirectory)\**\*.symbols.nupkg</FinalSymbolsPackagesPattern>
30+
<!-- The SignFiles target needs OutDir to be defined -->
31+
<OutDir>$(PackageDownloadDirectory)</OutDir>
32+
</PropertyGroup>
33+
34+
<Target Name="GetPackagesToSign">
35+
<ItemGroup>
36+
<FilesToSign Include="$(FinalPublishPattern)" Exclude="$(FinalSymbolsPackagesPattern)">
37+
<Authenticode>NuGet</Authenticode>
38+
</FilesToSign>
39+
</ItemGroup>
40+
<Message Importance="High" Text="Attempting to sign package '%(FilesToSign.Identity)'" />
41+
</Target>
42+
43+
<Target Name="SignPackages"
44+
Condition="'$(SkipSigning)' != 'true' and '$(SignType)' != 'public'"
45+
DependsOnTargets="GetPackagesToSign;SignFiles">
46+
</Target>
47+
2648
<Target Name="CreateContainerName"
2749
DependsOnTargets="CreateVersionFileDuringBuild"
2850
Condition="'$(ContainerName)' == ''">

0 commit comments

Comments
 (0)