问题
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