项目的处理器体系结构与参考文献的处理器体系结构不匹配 [英] Mismatch between processor architecture of the project and the processor architecture of the reference

查看:225
本文介绍了项目的处理器体系结构与参考文献的处理器体系结构不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在这个项目的背景下徘徊了很长时间,并且被告知不要担心。但是,现在我还有其他问题,我认为现在可能是询问此问题的最佳时间。 (最好的时间可能是我第一次出现的时间,但是嘿,现在太晚了。)

I have had this Warning lingering around the background of my project for quite a while now and I was told not to worry about it. However now I have other issues I figure now is probably the best time to enquire about it. (The best time was probably when I first occurred, but hey, too late for that now.)


处理器之间不匹配正在构建的项目 MSIL的体系结构和参考文件 C:\Users\Benjamin\Documents\Visual Studio 2010\Projects\DCIM\DCIM\bin\Debug\的处理器体系结构DCIM.exe, x86。这种不匹配可能会导致运行时失败。请考虑通过Configuration Manager更改项目的目标处理器体系结构,以使您的项目和引用之间的处理器体系结构保持一致,或者依赖具有与项目目标处理器体系结构相匹配的处理器体系结构的引用。

There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Users\Benjamin\Documents\Visual Studio 2010\Projects\DCIM\DCIM\bin\Debug\DCIM.exe", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

此错误在我的错误列表中显示两次。

This same error shows twice in my errors list.

老实说,我我一生中从未见过,听说过或使用过 MSIL这个标题,但是现在就在这里,我不知道它想要什么或意味着什么。

In all honesty, I have never before seen, heard of, or used the title 'MSIL' before in my life, but here it is now, and I have no idea what it wants or means.

这是我的配置管理器必须为我提供的:(再次,不知道这意味着什么)

This is what my Configuration Manager has to offer me: (again, no idea what this all means)

和其他活动解决方案平台是任何CPU或混合平台。

and the only other 'Active Solution Platforms' are "Any CPU" or "Mixed Platforms".

任何人都可以解释此警告的发生原因,含义和希望不能解决这个问题?

推荐答案

晚了聚会,但是去了:

这基本上意味着在解决方案中的项目与您引用的任何第三方DLL之间,您正在混合使用32位(x86)和64位(x64)体系结构。 64位程序集通常可以与32位程序集交互,但不能反过来。

It basically means that between your projects in the solution and any third-party DLLs you are referencing, that you are mixing 32-bit (x86) and 64-bit (x64) architectures. 64-bit assemblies can typically interact with 32-bit ones, but not the other way around.

如果您的任何项目都引用了任何第三方应用程序,请首先确定它们是什么架构(使用' dumpbin '(如果需要) )。然后,确保解决方案中的所有项目在其各自的项目属性中使用相同的项目(构建选项卡->常规部分->平台目标)。

If any of your projects have references to any third-party apps, start there by determining what architecture they are (use 'dumpbin' if needed). Then make sure that all of the projects in your solution use the same in their respective project properties (Build tab -> General section -> Platform target).

这篇关于项目的处理器体系结构与参考文献的处理器体系结构不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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