How to find all dependencies of a .NET project?

2019-01-17 07:27发布

Basically, what I need is something like Dependecy Walker, but it should work with .NET applications. Is there anywhere such tool?

8条回答
不美不萌又怎样
2楼-- · 2019-01-17 07:48

ildasm.exe works for this purpose as well.

This tool is automatically installed with Visual Studio. To run the tool, use the Developer Command Prompt (or the Visual Studio Command Prompt in Windows 7).

ildasm.exe lists a tree of namespaces, types, methods, etc. on loading an assembly.

IL DASM

And you can view all dependencies of the assembly by double clicking MANIFEST, and searching for lines starting with .assembly extern.

IL DASM MANIFEST

ildasm.exe comes with Visual Studio or .NET SDK installations, so chances are you've got it on your computer.

查看更多
兄弟一词,经得起流年.
3楼-- · 2019-01-17 07:53

I prefer ILSpy. It's an open-source .NET assembly browser and decompiler. And yes, it shows dependencies.

Decent replacement for Reflector which is not free anymore.

查看更多
登录 后发表回答