当我中断时,Visual Studio 2015 从不应用我的代码更改,进行代码更改,然后继续。
它在输出窗口中给了我这个消息:
-------- Edit and Continue build started --------
--------------------- Done ----------------------
Edit and Continue : Successfully applied code changes.
它说谎;它没有应用任何东西。如果再次在该文件中设置断点,它会告诉我:
The breakpoint will not currently be hit. The source code is different from the original version.
我找不到任何不正确的编译器标志,并且在选项中启用了编辑并继续:
我在 VS 2005 和 2010 中经常使用 Edit and Continue 并且效果很好。(嗯,它至少有超过 0% 的时间有效。) 2015 年发生了什么?