Edit

Share via


MSB3327 diagnostic code

This article describes the MSB3327 error code.

Message text

MSB3327: Unable to find code signing certificate in the current user’s Windows certificate store. To correct this, either disable signing of the ClickOnce manifest or install the certificate into the certificate store.

Description

You might get this error if you enable the Sign the ClickOnce manifests feature, and the .pfx file specified for ClickOnce manifest signing isn't found in your certificate store when MSBuild tries to publish the manifest.

Resolution

To resolve this error, try reimporting the .pfx file in the certificate store. In Windows Explorer, right-click the .pfx file and select Install PFX.

Screenshot of the Signing tab and the Sign the ClickOnce manifests option selected.

For more information, see Sign application and deployment manifests. For newer .NET projects in Visual Studio 2019 or later, see Deploy a .NET Windows Desktop application by using ClickOnce.

When you run the program in a non-interactive environment, such as a script in a pipeline, use the command-line tool certutil:

certutil –f –p [certificate_password] –importpfx <path to pfx file>

Applies to

All versions of MSBuild