码迷,mamicode.com
首页 > 其他好文 > 详细

sign a third-party dll which don't have a strong name

时间:2014-09-18 16:05:34      阅读:264      评论:0      收藏:0      [点我收藏+]

标签:io   ar   strong   for   art   sp   on   c   ad   

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

 

sign a third-party dll which don't have a strong name

标签:io   ar   strong   for   art   sp   on   c   ad   

原文地址:http://www.cnblogs.com/qiwubg/p/3979180.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!