Our company purchased a certificate to sign our assemblies. But if I go the signing tab in project properties and select the certificate there, I'll get the following error: "an attempt was made to reference a token that does not exist"
My colleague got this to work with a post build command that uses the signtool, which works perfect for console applications etc. but not for sharepoint assemblies.
If I use the post build command and don't check "sign the assembly" in the signing tab, I can't deploy or debug and get this error: "Value cannot be null. Parameter name: PublicKey"
If I use the post build command and check "sign the assembly" and use the key.snk, I can deploy and debug, but my assembly isn't signed with the custom certificate.
Is there anyone who knows how to sign the assembly using a custom certificate? Or is this just not possible at all?