I have a Visual Studio 2012 .Net main project with a platform target x86 specified in its build properties. The project consist of multiple C++ project and C# project. In my Configuration Manager, platform for C# project is Any CPU and for C++ project is Win32. I want to reference a 3rd party dll which is targeted for AMD64. When I add the reference, I get following warning:
Warning: Warning: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "DALSA, processorArchitecture=AMD64", "AMD64". 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.
If I try to change main C# project build for platform target x64, it complains because external DLLs it depends on has platform target x86.
Any What am I doing wr0ng?