In Visual Studio 2010 (or 2012) is there a way to locate all references in code that mention any class/method defined in a referenced dll.
Currently I have two processes that I use (depending on the situation):
Object Browser
and then expand to it's namespaces, and for each namespace I do a manual search, but this doesn't always help find all references and because the legacy code has the same namespaces spanning multiple assemblies there's a lot of noise to filter through.Neither of these are really ideal solutions, is there any easier way to do this? perhaps via a VS extension.
Select the C/C++ DLL project in Solution Explorer and select the Properties icon, or right-click the project and select Properties. At the top of the Properties pane, under Configuration, select All Configurations.
You cannot get the exact code, but you can get a decompiled version of it. The most popular (and best) tool is Reflector, but there are also other . Net decompilers (such as Dis#). You can also decompile the IL using ILDASM, which comes bundled with the .
You can find this if you install Resharper:
Expand the References
and choose Find code Dependent on Module
The results then appear like:
Don't have Resharper, but you do have Sublime Text?
in Sublime Text, select 'open folder', and select the folder containing the solution. Then select menu item Find -> Find in Files...
In the 'Where:' field, enter:
*.scsproj
Then in the 'Find:' field, search for the string
Include="[full namespaced name of library]"
for example:
Include="System.Xml.Linq"
will find all projects that reference the System.Xml.Linq dll in the solution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With