我如何做一个已经内置到dll中的程序集,特别是flute.dll [英] How I do a sign an assembly that has already been built into a dll specifically flute.dll

查看:198
本文介绍了我如何做一个已经内置到dll中的程序集,特别是flute.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要签署dll的原因是因为我想把它添加到全局程序集缓存。该程序集是一个用Java编写的css解析引擎,并被移植到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. 生成一个KeyFile:
    sn -k keyPair.snk

  2. 获取提供的程序集的MSIL:
    .dll /out:providedAssembly.il

  3. 重命名/移动原始程序集:
    ren providedAssembly.dll providedAssembly.dll.orig

  4. 从MSIL输出和您的程序集创建一个新程序集KeyFile:
    提供的libasmAssembly.il / dll / key = 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天全站免登陆