Extract to Resource not working on VS2010

Topics: Developer Forum
Jan 17, 2011 at 10:53 AM

Hi,

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,

Guillaume

Mar 9, 2011 at 10:58 PM

Yes i seem to be experiencing the same issue, did you find out why?

Aug 17, 2011 at 9:21 AM

...same problem here.

Solution anyone?