简体   繁体   中英

How can I prevent the source file is different from when the module was built when using Resharper

While I'm debugging I get this error:

the source file is different from when the module was built

or the debugger does not go to the line that is faulty.

So I searched stack overflow's Website and found this but none of the suggestions offered worked for me.

I removed Visual Studio and All my extensions then Removed them from regedit.exe(hkcu and hklm) and %Appdata% (local and Roaming). Then I reinstalled everything(new Versions)

  • Visual studio 2013 update 4
  • Resharper(12.0.31101.0)
  • Visual Assist 10.9 (2052)
  • DevExpress-20140923

Then I noticed This :

As seen on the GIF as soon as I run (F5) the code it looks like something edits the lines. I think that's why I get:

the source file is different from when the module was built

If I look At the Undo List their is two misery Items called "Smart delete" and when I remove Resharper the bug disappears. I also found this unanswered Question on Resharper

For those three reasons think it's Resharper, but I'm not sure... I Have found that selecting a entire line, or going to design view stops this behavior, But that is annoying to do every time i run the project.

What can I do to stop this annoying behavior?

Goto:

Tools -> Options -> Text Editor -> C# -> General -> Uncheck Apply Cut or Copy commands to blank lines when there is no selection

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM