使用 VS2022 调试时,即使没有修改,也经常会弹出如下错误:
![Edits were made which cannot be compiled 的解决办法-程序旅途](https://www.chengxulvtu.net/wp-content/uploads/2022/04/2022042615284532.png)
错误信息:
Edits were made which cannot be compiled. Changes won't be applied until the compile errors are fixed.
解决办法
可以在调试选项中关闭。
Debug -> Options -> Debugging -> General
如下图所示,勾掉 Enable Edits and Continue and Hot Reload
![Edits were made which cannot be compiled 的解决办法-程序旅途](https://www.chengxulvtu.net/wp-content/uploads/2022/04/2022042615322266.png)