且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

“不允许更改为 64 位应用程序"在 Visual Studio 2008 中调试时

更新时间:2023-10-14 23:14:52

CLR 级别的 64 位应用程序不支持编辑并继续",因此 Visual Studio 也无法实现它.

Edit and Continue is not supported on 64 bit applications at the CLR level so there is no way for Visual Studio to implement it either.

解决此问题的最简单方法是将您的应用程序定位到 x86 芯片.这将导致它在 Wow64 模式下作为 32 位进程运行,因此能够进行 ENC.您可以通过执行以下操作来做到这一点

The easiest way to work around this problem is to target your application to x86 chips. This will cause it to run in Wow64 mode as a 32 bit process and hence be able to ENC. You can do this by doing the following

  1. 右键单击 .EXE 应用程序并选择属性
  2. 转到构建选项卡
  3. 将平台目标组合框更改为 x86