强烈命名引用的dll后,程序集创建失败 [英] Assembly creation fails after strong naming the referenced dll

查看:143
本文介绍了强烈命名引用的dll后,程序集创建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的c#项目包含对外部dll的引用-(IHSEnergy.Enerdeq.Session.dll)
dll没有强名和h
生成项目时,它给我一个错误消息-引用的程序集没有强名称,并且编译失败.

现在,我已使用ildasm和ilasm工具对dll进行了强大的命名.

但是,在强力命名dll之后,现在正在编译,我的代码抛出错误. dll无法识别它应实际包含的类和方法.
.

关于构建代码的错误消息:
IHSEnergy.Enerdeq.Session.WebServicesSession''在未引用的程序集中定义.您必须添加对程序集IHSEnergy.Enerdeq.Session的引用,版本== 1.2.12.30756,


尽早寻求帮助. :doh::confused:

Hi,

My c# project contains a reference to an external dll -(IHSEnergy.Enerdeq.Session.dll)
The dll does not have a strong name and h
On building the project, it gives me an error msg - The referenced assembly does not have a strong name and the compilation fails.

Now, I have strong named the dll using the ildasm and the ilasm tools.

However, after strong naming the dll, now on compilation, my code throws errors. The dll does not identify the classes and methods it should actually contain.

Error msg on building the code:
IHSEnergy.Enerdeq.Session.WebServicesSession'' is defined in an assembly that is not referenced. You must add a reference to assembly IHSEnergy.Enerdeq.Session, Version=1.2.12.30756,


Require help as early as possible. :doh: :confused:

推荐答案

简单错误表示"IHSEnergy"中缺少对"IHSEnergy.Enerdeq.Session.WebServicesSession.dll"的引用. Enerdeq.Session.dll''

为了纠正此问题,您需要具有"IHSEnergy.Enerdeq.Session"库项目.在其中添加"IHSEnergy.Enerdeq.Session.WebServicesSession.dll"的引用,然后重新构建"IHSEnergy.Enerdeq.Session"项目.
Error simple means that a reference to ''IHSEnergy.Enerdeq.Session.WebServicesSession.dll'' is missing in ''IHSEnergy.Enerdeq.Session.dll''

In order to correct this, you need to have ''IHSEnergy.Enerdeq.Session'' library project. Add refrence of ''IHSEnergy.Enerdeq.Session.WebServicesSession.dll'' in it and then re-build the ''IHSEnergy.Enerdeq.Session'' project.


这篇关于强烈命名引用的dll后,程序集创建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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