Performance of a C# application built on AnyCPU vs x64 platform on a 64 bit machine

后端 未结 2 1911
无人共我
无人共我 2020-12-29 02:46

I have to deploy a C# application on a 64 bit machine though there is a slight probability that it could also be deployed on a 32 bit machine. Should I build two separate ex

2条回答
  •  感情败类
    2020-12-29 02:58

    As a side note to the above answer. There can be issues with using P/Invoke or DotNetInterop into x86 DLL's on an x64 OS using AnyCPU. In the case where no 64-bit version of the DLL is available, it may be necessary to compile x86 rather than AnyCPU as the OS will try to load the 64-bit version...and fail.

提交回复
热议问题