A Visual Studio extension for avoiding error "Refactoring Failed. Files still read-only" in Refactoring by ReSharper.
Download and install the extension from Releases.
This extension overwrites feature flag called "Git.Operation.EphemeralEditsUseDirtyAttributeOnly" to false.
Timing: Solution load fully completed or periodcally 10s after loaded.
This extension perhaps effective in follow conditions:
- Using Visual Studio 2019.
- Using default Git source code control plugin in Visual Studio.
- Using ReSharper.
- Use the following pages to open the Manage Extensions dialog box. https://learn.microsoft.com/en-us/visualstudio/ide/finding-and-using-visual-studio-extensions?view=vs-2019
- Select "Installed" node in left side pane.
- Find "GitFeatureFlagAdjusterForRsharp".
- Select it and click "Uninstall" button.
- Restart Visual Studio.