I am trying to create a Project Template Wizard. For that I need a strongly named Assembly with a Public Key token.
I went here: http://msdn.microsoft.com/en-us/library/ms247123.aspx and followed the steps.
I end up with a .pfx file in my assembly. But when I clean and build the dll does not have a Public Key Token on it.
(I verified via running 'sn -t EventWizard.dll' and I got this as a result:
Failed to convert key to token -- The public key for assembly '(null)' was invalid.
So I don't think I am getting a Public Key Token. How can I get one?
Update: Here is my Signing Tab:
I also faced with this.
Solution is very simple - arguments are case sensitive.
sn -T <yourassembly.dll>
So it was strongly named after all. But the sn.exe tool needed to be used in a different way to see the value I was looking for (PublicKeyToken).
If I ran this:
sn -e EventWizard.dll temp.txt
sn -t temp.txt
Then it worked just fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With