Sign NuGet package

This commit is contained in:
Daniel Plaisted 2018-12-06 17:58:10 -08:00
parent 4980693ed6
commit 6c1e2887f8
2 changed files with 13 additions and 1 deletions

View file

@ -41,7 +41,7 @@ phases:
-pack -publish
-Configuration $(BuildConfig)
-Architecture $(BuildArchitecture)
/p:SignCoreSdk=true /p:DotNetSignType=$(SignType)
-sign /p:SignCoreSdk=true /p:DotNetSignType=$(SignType)
$(AdditionalBuildParameters)
displayName: Build
env:

12
eng/common/Signing.props Normal file
View file

@ -0,0 +1,12 @@
<Project>
<ItemGroup>
<!-- Remove all automatically included packages -->
<ItemsToSign Remove="@(ItemsToSign)" />
<!-- Only sign the NuGet packages with the default signing infrastructure, as the other files need to be signed
as part of the build (as the default infrastructure doesn't support signing everything inside packages the
way they would need to be done if signing was done after all packages were produced. -->
<ItemsToSign Include="$(ArtifactsShippingPackagesDir)*.nupkg"/>
</ItemGroup>
</Project>