Find all source hardcoded strings
Solution 1:
ReSharper 5 is obvious a choice, but many tips must be set so as to achieve your goals,
- Turn on solution wide analysis.
- Go to
ReSharper
|Options
|Code Inspection
|Inspection Severity
|Potential Code Quality Issues
|Element is localizable
set toShow as error
. - Go back to Solution Explorer and click on the project (csproj).
- In Properties panel under ReSharper category, set Localizable to Yes, Localizable Inspector to Pessimistic.
Then you can find almost all you need in Errors in Solution panel.
Hope this helps.
Solution 2:
Or do a search based upon a regular expression like discussed here:
https://vosseburchttechblog.azurewebsites.net/index.php/2014/12/16/find-all-string-literals-in-c-code-files-but-not-the-ones-in-comments/
(?=(^((?!///).)*$)).*((".+?")|('.+?')).*