我怎么做一个标志,已经建成一个DLL专门flute.dll组装 [英] How I do a sign an assembly that has already been built into a dll specifically flute.dll

查看:271
本文介绍了我怎么做一个标志,已经建成一个DLL专门flute.dll组装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要签名的DLL的原因是因为我想将它添加到全局程序集缓存。该组件是一个CSS解析引擎用Java编写,并移植到J#。我使用VS2008,所以我不能让J#项目。它没有分配给它一个强名称密钥,我不知道该怎么现在,它的建成做到这一点。

The reason I want to sign the dll is because I want to add it to the Global Assembly Cache. The assembly is a css parsing engine written in Java and ported to J#. I use VS2008 so I can't make J# projects. It doesn't have a strong name key assigned to it and I have no idea how to do it now that it's built.

任何人有什么想法?

推荐答案

一点点搜索后,我发现这个帖子解释这样做的一种方式。

After a little searching, I found this post that explains one way of doing it.

Exerpt:

Exerpt:

从VS.NET命令提示符下,输入以下内容:

From a VS.NET command prompt, enter the following:


  1. 生成密钥文件:
    SN -k keyPair.snk

  2. 获取MSIL所提供组件:
    反汇编providedAssembly.dll /out:providedAssembly.il

  3. 重命名/移动原装配:
    仁providedAssembly.dll providedAssembly.dll.orig

  4. 创建从MSIL输出一个新的装配和程序集KeyFile时:
    ILASM providedAssembly.il / DLL /键= keyPair.snk

  1. Generate a KeyFile: sn -k keyPair.snk
  2. Obtain the MSIL for the provided assembly: ildasm providedAssembly.dll /out:providedAssembly.il
  3. Rename/move the original assembly: ren providedAssembly.dll providedAssembly.dll.orig
  4. Create a new assembly from the MSIL output and your assembly KeyFile: ilasm providedAssembly.il /dll /key= keyPair.snk

这篇关于我怎么做一个标志,已经建成一个DLL专门flute.dll组装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆