http://www.dependencywalker.com/
Dependency Walker is a free utility that scans any 32-bit or 64-bit Windows module (exe, dll, ocx, sys, etc.) and builds a hierarchical tree diagram of all dependent modules. For each module found, it lists all the functions that are exported by that module, and which of those functions are actually being called by other modules. Another view displays the minimum set of required files, along with detailed information about each file including a full path to the file, base address, version numbers, machine type, debug information, and more.
Dependency Walker is also very useful for troubleshooting system errors related to loading and executing modules. Dependency Walker detects many common application problems such as missing modules, invalid modules, import/export mismatches, circular dependency errors, mismatched machine types of modules, and module initialization failures.
Dependency Walker runs on Windows 95, 98, Me, NT, 2000, XP, 2003, Vista, 7, and 8. It can process any 32-bit or 64-bit Windows module, including ones designed for Windows CE. It can be run as graphical application or as a console application. Dependency Walker handles all types of module dependencies, including implicit, explicit (dynamic / runtime), forwarded, delay-loaded, and injected. A detailed help is included.
Dependency Walker is completely free to use. However, you may not profit from the distribution of it, nor may you bundle it with another product.
經過測試發現,Dependency Walker已經無法在win10正常工作。
可以使用另外一個工具Dependencies來查看依賴
https://github.com/lucasg/Dependencies/releases 運行DependenciesGui.exe
但是這個工具看不了依賴的是哪一個版本
因為殺毒軟件誤報的問題,必須下載沒有peview的版本,Dependencies_x64_Release_.without.peview.exe
dnSpy可以查看依賴的是哪一個版本
https://github.com/dnSpy/dnSpy/releases
https://github.com/s-siplivy/PackageChecker
可以查看某一個文件夾下的所有dll文件,列出每個文件所缺少的依賴
唯一不足的是,不會判斷bindingRedirect
可以用vs自帶的AssemblyExplorer來查看依賴,而且可以看到依賴的版本