MSB3323
This error occurs when MSBuild tries to sign a manifest, but fails to find the certificate.
The message text resembles the following text:
Unable to find manifest signing certificate in the certificate store.
You could get the error if you enabled Sign the ClickOnce manifests and the .pfx file specified for ClickOnce manifest signing could not be found in your certificate store when MSBuild was trying to publish the manifest.
To resolve this error, try re-importing the .pfx file again in the certificate store. To re-import the .pfx file, right-click the .pfx file in Windows Explorer and choose Install PFX.

See How to: Sign application and deployment manifests or for newer .NET projects in Visual Studio 2019 or later, see Deploy a .NET Windows Desktop application using ClickOnce.
When running 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>