使用vs自带的dumpbin工具:
打开VS命令行 {#打开VS命令行}
选择"
x64 Native Tools Command Prompt for VS 20XX
"
执行dumpbin /dependents dll/exe
{#执行dumpbin-dependents-dll-exe}
|-----------|-------------------------------------|
| 1
| dumpbin /dependents dll/exe
|
查看依赖项 {#查看依赖项}
|---------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| C:\Program Files\Microsoft Visual Studio\2022\Community>dumpbin /dependents C:\windows\system32\calc.exe Microsoft (R) COFF/PE Dumper Version 14.41.34120.0 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file C:\windows\system32\calc.exe File Type: EXECUTABLE IMAGE Image has the following dependencies: SHELL32.dll KERNEL32.dll msvcrt.dll ADVAPI32.dll api-ms-win-core-synch-l1-2-0.dll api-ms-win-core-processthreads-l1-1-0.dll api-ms-win-core-libraryloader-l1-2-0.dll Summary 1000 .data 1000 .pdata 1000 .rdata 1000 .reloc 5000 .rsrc 1000 .text C:\Program Files\Microsoft Visual Studio\2022\Community>
|
在Image has the following dependencies:
中会列出所有的依赖项。