Find all calls to all web reference methods in the solution (for one web reference)

712 Views Asked by At

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?

4

There are 4 best solutions below

0
Crono On

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

0
ale On

Probably Resharper can help in your task:

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

2
John Saunders On

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

0
Robert Christ On

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