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

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

问题描述

之所以要对 dll 进行签名,是因为我想将其添加到全局程序集缓存中.该程序集是一个用 Java 编写并移植到 J# 的 css 解析引擎.我使用 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.

摘录:

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

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

  1. 生成密钥文件:sn -k keyPair.snk
  2. 获取所提供程序集的 MSIL:ildasm providedAssembly.dll/out:providedAssembly.il
  3. 重命名/移动原始程序集:人提供的Assembly.dll提供的Assembly.dll.orig
  4. 从 MSIL 输出和您的程序集 KeyFile 创建一个新程序集:ilasm 提供了Assembly.il/dll/key=keyPair.snk

这篇关于我如何对已经内置到 dll 中的程序集进行签名,特别是 flute.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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