I've signed my assemblies using the VS C# .NET IDE, with a password-protected key container file. I also want to obfuscate my assemblies as a post-build event. This will cause the signature to become invalid. So I tried to extract the keyset from the pfx in order to re-sign the assemblies, but the following error will occure:
| >>command prompt> sn -pc key.pfx key.snk
Microsoft (R) .NET Framework Strong Name Utility Version 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved.
Failed to extract public key from key pair -- Keyset does not exist |
What should I do now?