October 09, 2012

Mismatch between the processor architecture


Warning
There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "PATH\PROJECT.dll", "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.

Solution
1- In Visual Studio menu go to Build > Configuration Manager...
2- go to Platform column and select all x86 (it must be changed to Any CPU)
3- Click on <New...> and Select Any CPU
4- That's it, Compile All and Be Happy ;-)

1 comment:

Sandun Wanniarachchi said...

thanks,I solve my problem using your advice..(y)