When considering the project I'm working on, I came across several places where the same text string appears in several resources (.resx).
I would like to see all such duplicates, because I believe that in most cases there is no reason for duplication (i.e. the text in question is used in the same context and should be transferred to or used from the resource file, accessible for all places that are necessary use for text).
Is there an easy way to identify such duplicates, either directly in Visual Studio, or using an add-in such as ReSharper?
Edit: I have to give an example of one of the situations that I have already found and fixed, so the problem is a bit clear. I found three instances of the Continue text string in the same project. Each instance had a different name (for example, name = "Continue", name = "Contnue" [sic] and name = "AdvanceToNextPage"). Two instances appeared in the same .resx file, one of which appeared in another .resx file, and since they were all in the same project, the text could (and possibly should) have been extracted from the record from the main Properties / Resources.resx file.
source share