Edit and continue feature stopped working in Visual Studio 2010

后端 未结 22 1790
南旧
南旧 2020-12-05 06:43

The Visual Studio Edit and Continue feature stopped on Visual Studio 2010, and I don\'t know what has caused the problem.

I am working on a Windows application progr

相关标签:
22条回答
  • 2020-12-05 07:12

    In the Solution Explorer view, right-click on each reference of References, choose Properties. In the Properties view, sign False to the field of Embed Interop Types. This worked for me.

    0 讨论(0)
  • 2020-12-05 07:13

    I'd try cleaning out all the files that are generated by VS. So I'd delete the bin and obj directories and I'd also delete the *.suo and *.user files. Since those files are auto-generated this shouldn't affect anything (though I'd obviously make a backup of all files just in case there's some other files that have been put in there by mistake).

    Sometimes those files can get corrupted (it used to happen quite a lot in the old VC++ etc) and then VS can start acting very funny.

    0 讨论(0)
  • 2020-12-05 07:15

    In my case, what worked was unchecking "Require source files to exactly match the original version" in Debugging options. VS Community 2017 here.

    0 讨论(0)
  • 2020-12-05 07:16

    I had this problem in Visual Studio 2013, and :-

    • Sometimes just closing and reopening the solution works, but when that doesn't
    • restarting Visual Studio (Close solution, exit Visual Studio, Re-open Visual Studio, re-open solution, re-try debugging with Edit & Continue) fixes it.

    In my case, I didn't have any Interop types that were embedded, nor did any of my code have the dynamic keyword, and I had performed a full solution clean without success. I had been running, debugging and re-starting many times, however, so it may have had something to do with memory -- it took Visual Studio more than one minute to close, during which time the disk was thrashing (presumably memory paging at play).

    0 讨论(0)
提交回复
热议问题