升级后如何在 VS 2015 中启用本机编辑并继续?

How to enable native Edit & Continue in VS 2015 after upgrade?

如何在升级(或全新安装)后在 VS 2015 中启用本机“编辑并继续”?

对于全新安装,默认情况下应启用“编辑并继续”。

如果您是从以前的版本升级而来的,您将需要在您的项目中设置以下所有三个 属性 页面:

  1. Under C/C++ -> General, set the "Debug Information Format" to “Program Database for Edit and Continue (/ZI)”
  2. Under the Linker -> General, set "Enable Incremental Linking" to “Yes (/INCREMENTAL)”.
  3. Under Debug -> General, (under the "Enable Edit and Continue”) enable the "Native Edit and Continue"

“编辑并继续”选项已移至工具==> 选项==> 调试。下面是截图,

我认为它可能与与 EnC 不兼容的默认链接器选项有关。您可以在此答案中找到一些有用的信息