Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

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.

like image 355
Curtis Avatar asked May 09 '14 16:05

Curtis


2 Answers

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"
like image 177
Søren Gørtz Olesen Avatar answered Oct 12 '22 06:10

Søren Gørtz Olesen


I hade the same issue with Visual Studio 2013.
The solution was to add the project to version control (git in my case).

Now, you don't need make commits if you don't want to but simply add the solution to version control and the issue should go away.

like image 32
Sani Singh Huttunen Avatar answered Oct 12 '22 08:10

Sani Singh Huttunen