问题
Given a really big .NET codebase. Some parts in sources and some parts in binaries. It's all .NET code.
I'd like to have a tool for discovering dependencies in that code base. By assemblies and by types. Having visualisation of dependencies in graphic form would be very nice.
I'd like to have: instantiation graph, refenrece graph, call graph, type dependencies graph.
For an instance take a class and get all kind of dependencies from his point of view on a diagram with ability to filter by assembly/namaspace/etc.
I understand that reflector can do. And VS2010 Ultimate can do this. But they all have some drawbacks:
- Reflector is good tool, but its dependencies visualization facilities are very limited
- VS2010 is too sloooow. It looks like a toy not a mature tool (I meaning its diagramming facilities).
p.s. has already asked somewhere? ok, point me to that place. tnx.
回答1:
As @gor suggested you can try NDepend to browse .NET code dependencies. The tool proposes:
- a dependency graph
- a dependency matrix,
- and also some C# LINQ queries can be edited (or generated) to browse dependencies.
In this related question SO answer you can find all details.
Disclaimer: I work for NDepend
回答2:
Did you try NDepend ?
回答3:
Also take a look at Lattix. It can also help you with detecting dependencies.
回答4:
Install my Dependency Structure Matrix plugin for Reflector. It's free !
You can analyse type dependencies and assembly dependencies to get an idea of the architecture of an application
[Update] This plugin is now available in form of a Visual Studio Add-In
来源:https://stackoverflow.com/questions/4922133/tool-for-discovering-dependencies-of-net-code-not-vs2010