Finding unused strings in all .resx of a solution

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • schaf

    Finding unused strings in all .resx of a solution

    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

    #2
    Re: Finding unused strings in all .resx of a solution

    "schaf" <schaf@2wire.ch wrote in message
    news:0979ecaf-8b17-41ea-ba18-c2063e2c36e8@59 g2000hsb.google groups.com...
    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 = GetGlobalResour ceObject("WebRe source",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?

    Comment

    • schaf

      #3
      Re: Finding unused strings in all .resx of a solution

      On 6 Mrz., 11:43, "Alberto Poblacion" <earthling-
      quitaestoparaco ntes...@poblaci on.orgwrote:
      "schaf" <sc...@2wire.ch wrote in message
      >
      news:0979ecaf-8b17-41ea-ba18-c2063e2c36e8@59 g2000hsb.google groups.com...
      >
      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 keysthat
      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 = GetGlobalResour ceObject("WebRe source",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?
      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 ?

      Comment

      Working...