title: How to use proper unmanaged .dll depending on CPU Architecture?
body: <p>I am using an unmanaged library in a .net application which is used on x86 and 64bit systems alike and therefore is compiled as 'Any CPU'. The unmanaged, native .dll however comes in two different .dlls for that (one for win32 and one for x64).</p>
  
  <p>Is there any way to still keep the 'Any CPU' / one binary way with different native .dlls regarding the P/Invoke signatures for x86 &amp; 64bit systems? Or -is- the only way to create separate configs &amp; therefore distributions? If so, are there any compile #if/#endif flags I can use for that?</p>