Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for NuGet Signing in NuGet-task (NuGet 4.6) #7386

Open
doormalena opened this Issue Jun 6, 2018 · 3 comments

Comments

Projects
None yet
4 participants
@doormalena
Copy link

doormalena commented Jun 6, 2018

We would like to see that the NuGet Signing capability is added as a configurable option for the the NuGet build definition task. See also https://docs.microsoft.com/en-us/nuget/create-packages/sign-a-package

@jotaylo

This comment has been minimized.

Copy link
Contributor

jotaylo commented Jun 8, 2018

Have you tried using the 'custom' NuGet command to sign the package?

@doormalena

This comment has been minimized.

Copy link
Author

doormalena commented Jun 11, 2018

Yes I ended up with a custom command. Nevertheless it would be nicer if this is available out of the box :-).

As a reference for others searching for the same answer:

  • NuGet Tool Installer task configured to install NuGet version 4.6.0
  • NuGet task configured with a custom command:
    sign $(Build.ArtifactStagingDirectory)/**/*.nupkg -CertificatePath $(Agent.WorkFolder)\_temp\CodeSigningCertificate.pfx -CertificatePassword $(CertificatePassword) -HashAlgorithm sha256 -Timestamper "http://timestamp.[SomeCertSupplier].com" -TimestampHashAlgorithm sha256
@alexmullans

This comment has been minimized.

Copy link
Contributor

alexmullans commented Jun 12, 2018

I've copied this to our internal backlog - thanks for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.