Surprisingly, the fix was easier than expected ... I just had to open the project file and remove all the xml tags that were associated with the assembly signature. For example:
<PropertyGroup> <SignManifests>true</SignManifests> </PropertyGroup> <PropertyGroup> <ManifestKeyFile>mycert.pfx</ManifestKeyFile> </PropertyGroup> <PropertyGroup> <ManifestCertificateThumbprint>AB3S6</ManifestCertificateThumbprint> </PropertyGroup> <PropertyGroup> <ManifestTimestampUrl>http://timestamp.globalsign.com/scripts/timstamp.dll</ManifestTimestampUrl> </PropertyGroup>
After that, I simply switched to the Signing tab and re-added the certificate. And it worked. Hope this helps someone in the future.
source share