Edits were made which cannot be compiled. When using Resharper in VS2019

ぐ巨炮叔叔 提交于 2019-12-24 00:55:39

问题


I have a multi project solution using .Net Core 2.1 With VS2019 16.3.9 and Resharper 2019.23 Build 192.0.20191016.60459

If I try to run a test in debug, it will run ok once. On the second run I will get the error

Edits were made which cannot be compiled. Execution cannot continue until the compile errors are fixed.

I have tried deleting the .vs folder

A similar question is asked here but I thought it was worth starting a new question as this is related to Resharper.

I get the error in the VS unit test window and in Resharper's test window.


回答1:


Potentially this is caused by Resharper's Edit & Continue feature.
A workaround is to disable this feature:

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

Solution taken from here.



来源:https://stackoverflow.com/questions/58828481/edits-were-made-which-cannot-be-compiled-when-using-resharper-in-vs2019

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!