Why is the checkbox 'Prefer 32-bit' disabled in Visual Studio 2012?

后端 未结 3 2037
旧巷少年郎
旧巷少年郎 2021-02-03 18:19

I came across a situation in which I would like to set the Prefer 32-bit to true. But in Visual Studio 2012, it is showing as disabled. And no matter what I do

3条回答
  •  Happy的楠姐
    2021-02-03 18:42

    In case anybody encounters this for a .NET 4.5 executable in Visual Studio 2013 (and possibly Visual Studio 2012):

    We solved it by switching the project to .NET 4.0 and then back .NET 4.5 (on the Build tab of the project properties). This reenabled the checkbox "Prefer 32 bit" for AnyCPU.

提交回复
热议问题