none
processor architecture 的mismatch 问题 RRS feed

  • 问题

  • 在对程序的一个函数做单元测试的时候,发现出现如下的警告:

    Warning    1    There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "NationalInstruments.Net, Version=9.1.40.204, Culture=neutral, PublicKeyToken=dc6ad606294fc298, 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.    UTProject

    Warning    2    There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Users\wils\Documents\Visual Studio 2010\Projects\C Sharp\P621\P621\bin\Debug\P621.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.    UTProject

    不知道是什么问题,我已经按照提示所说的在<build> -- > configuration manager , 设置两个PROJECT的CPU为ANY CPU. 但还是有如上的警告.

    可我在非测试PROJECT编译运行程序,就没有任何警告.

    2012年7月13日 14:16

全部回复