64位生成错误 [英] 64-bit Build error

查看:93
本文介绍了64位生成错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


大家好,

我正在尝试在64位上构建一个32位开发的解决方案。
在biuld期间抛出错误。

I am trying to build a solution on 64-bit which was developed on 32-bit.
During the biuld it throwing an error.

尝试加载格式不正确的程序集.dll

an attempt was made to load an assembly with an incorrect format .dll

谢谢你的建议
Murari

Thanks for you suggestions
Murari

推荐答案

该错误消息表明其中一个程序集正在引用以x86为目标构建的组件。 如果您运行x64应用程序(64位),则所使用的每个程序集必须定位到AnyCPU或x64。 任何本机代码(即:一个包装的COM对象,或通过P / Invoke调用的DLL)也必须编译为64位DLL。

项目中的一个DLL,或者由项目引用,仍然是针对x86。
That error message suggests that one of the assemblies is referencing a component that was built targetting x86.  If you run an x64 application (64bit), every assembly used must be targetting either AnyCPU or x64.  Any native code (ie: a wrapped COM object, or a DLL invoked via P/Invoke) must also be compiled as a 64bit DLL.

One of the DLLs in your project, or referenced by your project, is still targetting x86.


这篇关于64位生成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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