在Mono上无法与IronPython

在Mono上无法与IronPython

本文介绍了GAC(gacutil)在Mono上无法与IronPython.dll一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将gacutil(mono)用于IronPython,但是出现以下错误.

I tried to use gacutil (mono) for IronPython, but I got the following error.


sudo gacutil -i IronPython.dll
Password:
Failure adding assembly IronPython.dll to the cache: Strong name cannot be verified for delay-signed assembly

这是什么意思?这个问题有解决办法吗?

What does this mean? Any solution to this problem?

推荐答案

您是自己构建IronPython吗?签名有点像PITA,您需要提供自己的完整密钥才能获得真实的签名.我们确实在分发中包括了MS公钥,但这只能用于延迟签名.我们确实在构建中启用了延迟签名,即使您使用完整密钥也可能导致延迟签名的构建(我不确定编译器在这里做什么).

Did you build IronPython yourself? Signing is kind of a PITA and you'll need to provide your own full key to get a real signature. We do include the MS public key in the distribution but this can only be used for delay signing. We do have delay signing turned on in the build which might result in a delay signed build even if you use a full key (I'm not sure what the compilers do here).

您可能可以使用sn或Mono的等效项对程序集进行完全签名.您还可以通过使用sn来禁用在GAC中安装之前的验证(这是我们开发IronPython时的工作).

You can probably fully sign the assembly using sn or Mono's equivalent. You also may be able to disable verification before installing in the GAC by using sn as well (this is what we when we develop IronPython).

这篇关于GAC(gacutil)在Mono上无法与IronPython.dll一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 15:42