Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Finding unused strings in all .resx of a solution

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
schaf - 06 Mar 2008 09:29 GMT
Hi all!
I would like to check if there are some resx keys, which will not be
used in the source code. Is there a plugin or another possibility to
evaluate this issue?

Regards
Marcel
Alberto Poblacion - 06 Mar 2008 10:43 GMT
> I would like to check if there are some resx keys, which will not be
> used in the source code. Is there a plugin or another possibility to
> evaluate this issue?

  I don't think that a plugin would be reliable to determine the keys that
are used by a general arbitrary program. Imagine that your resx contains a
key named "string123" and your code does:

int i=123;
key ="string"+i;
x = GetGlobalResourceObject("WebResource",key);

  This uses your "string123", but how would an automated tool conclude this
from the source code? What if the "i" variable above is a computed value
that depends on inputs provided at runtime?
schaf - 06 Mar 2008 10:49 GMT
On 6 Mrz., 11:43, "Alberto Poblacion" <earthling-
quitaestoparacontes...@poblacion.org> wrote:

> > I would like to check if there are some resx keys, which will not be
> > used in the source code. Is there a plugin or another possibility to
[quoted text clipped - 11 lines]
> from the source code? What if the "i" variable above is a computed value
> that depends on inputs provided at runtime?

No I would like to do just a short check if all my keys in the resx
are also used in the code. I do not compose keys so maybe this check
can be done ?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.