Any CPU dependent on C++/CLI dependent on native C dll (any cpu for c++/cli)
Here's my problem. I am wrapping a C dll in C#. To do this, I am first writing a C++/CLI wrapper. The native C library is linked to the C++/CLI wrapper. (Linker properties in C++/cli project). Here's how it is all organised now: - The native C .lib: both x86 and 64bit. 1 solution containing 2 projects: C++/CLI wrapper project to which is linked native C .lib C# project referencing C++/CLI project My problem comes from the fact that I need C# to target "Any CPU". But this option is not available in C++/CLI since it compiles directly to native code. My idea to solve this is: - Compile C++/CLI