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
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.
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.
In my case, what worked was unchecking "Require source files to exactly match the original version" in Debugging options. VS Community 2017 here.
I had this problem in Visual Studio 2013, and :-
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).