vs2010 does not have a strong name

处理步骤:

C:\myWorkSpace\IECG Dev. Tool\Forklift\DbUpgraderDLL\bin\Debug 为dll 所在目录

DbUpgraderDLL.dll为dll名称

mykey.snk 为自定义的新生成签名名称

 

调用vs2010命令行工具

1. cd C:\myWorkSpace\IECG Dev. Tool\Forklift\DbUpgraderDLL\bin\Debug

2. ildasm /all /out=DbUpgraderDLL.il DbUpgraderDLL.dll

3. sn -k mykey.snk

4. ilasm /dll /key=mykey.snk DbUpgraderDLL.il

 

snk生成成功后:

 项目右键属性

 

参考:

Referenced assembly does not have a strong name

如何创建强命名程序集, 如何查看强命名程序集的PublicKeyToken

posted @ 2014-11-01 18:38  振乾  阅读(527)  评论(0编辑  收藏  举报