Extract to Resource doesn't seem to work for me on Visual Studio 2010.
Scenario : I select a string in code, then Refactor => Extract to Resource. I choose an existing .resx file and enter the name of the resource, then click OK.
- When Preview is checked, a preview window is displayed, but all lines have the same number starting from a certain point, and preview reflects no changes in source file.
- When I proceed with the refactoring, a corresponding entry is added to the chosen .resx file but not to matching .Designer.cs file, which prevents from referencing the resource in code.
- The string to refactor is not replaced with a call to the resource (e.g. Properties.Resources.XYZ)
Microsoft Visual Studio 2010 10.0.30319.1, Windows 7 64 bits, Vault source control (all necessary files in a checked out state)
Thanks in advance for your help,