2

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.

Kirsten
  • 15,730
  • 41
  • 179
  • 318

2 Answers2

7

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

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

Solution taken from here.

veuncent
  • 1,599
  • 1
  • 20
  • 17
  • Allows changes, but the debugger continues with the old source, one expects to run the source as one sees it. – Martin Mar 07 '21 at 13:16
1

Make sure than your debugging things are like this:

https://i.stack.imgur.com/DUXUh.jpg

Ali Karaca
  • 3,365
  • 1
  • 35
  • 41
sgrysoft
  • 588
  • 7
  • 14