进行了无法编译的编辑。在VS2019中使用Resharper时

我有一个使用.Net Core 2.1的多项目解决方案 使用VS2019 16.3.9和Resharper 2019.23 Build 192.0.20191016.60459

如果我尝试在调试中运行测试,它将运行一次。 在第二次运行中,我将得到错误

  

进行了无法编译的编辑。执行无法继续   直到修复编译错误为止。

我尝试删除.vs文件夹

类似的question is asked here,但我认为值得提出一个新问题,因为这与Resharper有关。

我在VS单元测试窗口和Resharper的测试窗口中得到了错误。

chenyaleiBB 回答:进行了无法编译的编辑。在VS2019中使用Resharper时

这很可能是由R​​esharper的Edit & Continue功能引起的。
一种解决方法是禁用此功能:

Debug --> Options --> Debugging --> General --> uncheck Enable Edit and Continue

解决方案取自here

,

请确保您的调试工作不是这样 enter image description here

https://www.codej.cn/res/2022/08-15/05/f6c06473659ec00c4e7e1e7e7c06ca3a.jpg

https://www.codej.cn/res/2022/08-15/05/f6c06473659ec00c4e7e1e7e7c06ca3a.jpg

本文链接:https://www.f2er.com/3113579.html

大家都在问