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

Commit 7d37548

Browse files
authored
Sign the 'nupkg' files; CLI:release/2.1.3xx (#9086)
* Sign the 'nupkg' files. * Sign 'NuPkg' files with the 'NuGet' cert. * Use "Microsoft402"
1 parent ae75392 commit 7d37548

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build/Signing.proj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<!-- The signing infrastructure runs using MSBuild 14, which doesn't support some of the new syntax we're using. So set the BuildingSingingProject
66
property here to avoid importing files we don't need for signing which would cause errors if imported when using MSBuild 14. -->
77
<BuildingSigningProject>true</BuildingSigningProject>
8+
<ExternalCertificateId Condition="'$(ExternalCertificateId)' == ''">135020001</ExternalCertificateId>
9+
<InternalCertificateId Condition="'$(InternalCertificateId)' == ''">Microsoft402</InternalCertificateId>
10+
<NugetCertificateId Condition="'$(NugetCertificateId)' == ''">NuGet</NugetCertificateId>
811
</PropertyGroup>
912

1013
<Import Project="..\dir.props" />
@@ -106,6 +109,10 @@
106109
<FilesToSign Include="$(PackagesDirectory)/**/*.cab">
107110
<Authenticode>$(InternalCertificateId)</Authenticode>
108111
</FilesToSign>
112+
<FilesToSign Include="$(PackagesDirectory)/**/*.nupkg"
113+
Exclude="$(PackagesDirectory)/**/*symbols.nupkg">
114+
<Authenticode>$(NugetCertificateId)</Authenticode>
115+
</FilesToSign>
109116
</ItemGroup>
110117
</Target>
111118

0 commit comments

Comments
 (0)