Resharper cannot rename files when Git version control is applied

好久不见. 提交于 2019-12-10 04:52:53

问题


I have a Git version controlled solution in VS 2013 with several projects. Some of the projects are outside of the solution folder and thus are not controlled by Git.

I noticed that for those projects that are outside of the solution folder Resharper 8 class name refactoring fails with the 'file is read-only' error. It also fails to apply "Rename file to match the class name" command.

All works fine for the projects that are IN the solution folder and are controlled by Git.

Is this a known issue of VS or Resharper? Or is it considered a normal flow, and the files must be renamed manually?

UPDATE

Another interesting issue, Resharper cannot modify those files' content as well. So if I want to comment a line using Resharper's command, it won't until I start editing the file manually in VS.

来源:https://stackoverflow.com/questions/22409312/resharper-cannot-rename-files-when-git-version-control-is-applied

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!