I need a workaround for Resharper when it says 'Failed to modify Documents'. Does anybody know why it does this and how to get around it?

Curtis picture Curtis · May 9, 2014 · Viewed 9k times · Source

I have noticed a few times over the past months that sometimes I will use the little yellow lightbulb icon and right click it and select an option for it to fix something for me and then it just highlights what it was going to fix and pops up a message that says "Failed to modify Documents".

Has anybody had this problem?
Do you know how to overcome it?
It is almost as if resharper thinks that the document is read-only or something, even though I can manually edit the document.

Answer

Søren Gørtz Olesen picture Søren Gørtz Olesen · Aug 20, 2014

Disable the Visual Studio source control plug-in.

  1. Tools -> Options -> Source Control
  2. Change "Current source control plug-in" from "Microsoft Git Provider" to "None"