0

In Visual Studio 2012, is there a fast way to find all specific lines in my entire solution where any call is being made to any method that exists within one specific web reference?

I am not looking for just one specific method, my web reference has a large number of methods in it, and I want to find them all.

Or is the best way to go about this to just look for all instantiations of any required object(s) I am creating prior to to calling those web methods, and then narrow it down from there?

Krondorian
  • 616
  • 1
  • 9
  • 21

4 Answers4

1

ReSharper "Find Usages Advanced", then setting "Usages of Members" will find all usages of the members of the web reference proxy type.

John Saunders
  • 160,644
  • 26
  • 247
  • 397
0

Unless you do some serious code parsing with a custom addin, I'm afraid all you have left is good'ol Ctrl-F.

If you got a particular naming pattern for web methods then regular expressions search might help you too (still Ctrl-F).

Probably not the answer you'd want, but that's that. :p

Crono
  • 10,211
  • 6
  • 43
  • 75
0

Probably Resharper can help in your task:

Find Usage feature can find all reference of a simbol, from a method to a class reference

ale
  • 10,012
  • 5
  • 40
  • 49
0

Delete the web reference, compile, and see what fails : )

Robert Christ
  • 1,910
  • 2
  • 13
  • 19