In Visual Studio in my project's Properties under the Signing tab if I try to sign the assembly by locating my .pfx CA-issued certificate, once I insert my password I get the error "Cannot find the certificate and private key for decryption".
As opposite, when I try to sign the ClickOnce manifest with the same file (by clicking on the "Select from File..." button) I do not get any error.
Again if I use the same file with signtool.exe it works perfectly. Hence where is the problem?