Sets the public key token, which is the last 8 bytes of the SHA-1 hash of the public key under which the application or assembly is signed.
When you set the public key by calling the AssemblyName.SetPublicKey(Byte[]) method, you must also use the AssemblyName.SetPublicKeyToken(Byte[]) method to provide a public key token. Otherwise, a System.Security.SecurityException is thrown when the AssemblyName.GetPublicKey method is called.