常建57

路漫漫其修远兮。。。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

Problem: Assembly generation failed -- Referenced assembly '' does not have a strong name

Cause: this is due to you have referenced a third-party dll which doesn't have a strong name.

Solution:

  1. open Developer Command Prompt for Visual Studio cmd and run as administrator. Enter the dll folder which you have referenced.

    cd "C:\MyFolder"

  2. decompiling the dll to IL

    ildasm /all /out=Test.il Test.dll

  3. Generate a key file

    sn -k mykey.snk

  4. compiling the IL to dll again.

    ilasm /dll /key=mykey.snk Test.il

 

posted on 2014-09-18 14:29  常建57  阅读(139)  评论(0编辑  收藏  举报