I am building a C# project for a DLL that will be used in an x64 environment. Originally I was using 'Any CPU" as the platform target.
However, when I test it I found it failed during library loading and I found it loaded some 32 bit libraries. I changed it to 'x64' and everything works as expected. In what case should I use 'x64' and in what case I should use 'Any CPU'?
I used to think 'Any CPU' is safer and it will automatically determine whether 32-bit or 64-bit library is required.