c# – 抑制处理器不匹配警告

我在构建项目时收到此警告:

There was a mismatch between the processor architecture of the project being built “MSIL” and the processor architecture of the reference “D:\ReferencedProject.dll”, “ARM”. 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.

我有一个Windows Phone 8.1 Silverlight项目,似乎被迫使用AnyCPU目标,以及一些x86和ARM特定的子组件.由于我无法更改应用程序项目的体系结构,因此我想抑制此警告.

我已经搜索了一种方法,并设置了一个few pages say来设置< ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>无< / ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>在我的csproj文件中.我已尝试在引用和引用的项目上执行此操作,但我仍然收到警告.

我怎么压制这个?

最佳答案
我得到了一个类似的警告我的单元测试项目……终于发现警告来自假货项目,而不是我的项目.可能要确保错误中的文件路径是您期望的那个…

转载注明原文:c# – 抑制处理器不匹配警告 - 代码日志