建议你看一下MS Press - Inside Microsoft .NET IL Assembler这本书,MS的同志写的。。看了的话,很多问题都清楚了。。只不过E文要过硬

解决方案 »

  1.   

    The one you saw with ILDASM is the public key, not public key toekntry this, after you use sn -k create the key file, then run the following to extract the public key:sn -p YourKeyFile.snk YourPublicKey.snkthen run
    sn -tp YourPublicKey.snkyou will see the public key token is same as what you saw in gacutil -l and the public key is same as what you saw in ILDASM
      

  2.   

    ok 理解了
    没有区分密钥对和公钥
    再次试验,成功~~~~key1相当于公钥对标记
    sn -p YourKeyFile.snk YourPublicKey.snk 导出公钥 然后sn -tp YourPublicKey.snk才是公钥标记key2我看错了,其实那是mscorlib.dll的公钥标记。要查看Assembly的公钥要用SN.exe -Tpkey3是真的公钥标记。