0

I am trying to convert a C# code (program.cs) into a DLL. This C# code uses another DLL, which is the DLL of DreamCheeky Thunder Missile Launcher. You can get the software from here (just 1 mb) and the installation got this dll.

I created a Class Library Project under Visual Studio 2010 Professional C# category and added this DLL.

As soon as I added it, I got the following warning

Warning 1 There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "USBLib", "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. MissileLauncher

I am not familiar with windows specific programming, so do you mind letting me know why I am getting this and the solution?

1
  • It seems that you have dependency on a library that is built either for x86 or x64 and you're trying to build your project for Any CPU. At this point, I recommend to ignore this warning and if you notice some runtime-errors, recbuild your project for x86 or x64 respectively. Commented May 13, 2013 at 6:52

1 Answer 1

1

A simple Google search finds us this:

How do I fix the Visual Studio compile error, "mismatch between processor architecture"?

Maybe apply the fixes that were proposed in there?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.