2

我有一个非常简单的用例。我正在为我的应用程序使用表达式编码器 4.0。此应用程序需要在 x86 和 x64 上运行。

问题:当我通过使其“独立于架构”来运行它时,我们会收到有关目标不兼容的警告。

Warning 1   There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Microsoft.Expression.Encoder, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=x86", "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.  IDS

我怎样才能让这些警告消失。

4

1 回答 1

0

表达式编码器仅作为 32 位版本存在。(但它仍然可以在 64 位操作系统上使用WoW64。)

要摆脱警告,您必须将项目更改为32-bit (x86),但您也应该忽略它来保存。

于 2014-01-15T09:54:07.023 回答