I do not see dumpbin.exe on my system. I have Visual Studio 2005 on my system. When I type dumpbin on the command line, it says unrecognizable command.
Does it come with Visual Studio by default, or do I have to explicitly add this tool?
This question is related to
c#
c++
.net
visual-studio
visual-studio-2005
You probably need to open a command prompt with the PATH set up properly. Look for an icon in the start menu that says something like "Visual C++ 2005 Command Prompt". You should be able to run dumpbin (and all the other command line tools) from there.
Instead of using the dumpin.exe it is possible to call the link.exe with several options:
Example: link /dump /all myfile.lib
For detailed options see output of link /dump
In case of Visual Studio C++ Express installation, the link.exe is located here:
{root}\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\
The best way is to open the "Visual Studio Command Prompt" and then enter the lines above.
As for VS2017
, I found it under C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\Hostx64\x64
By default, it's not in your PATH. You need to use the "Visual Studio 2005 Command Prompt". Alternatively, you can run the vsvars32 batch file, which will set up your environment correctly.
Conveniently, the path to this is stored in the VS80COMNTOOLS environment variable.
As for VS2017
, I found it under C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\Hostx64\x64
Instead of using the dumpin.exe it is possible to call the link.exe with several options:
Example: link /dump /all myfile.lib
For detailed options see output of link /dump
In case of Visual Studio C++ Express installation, the link.exe is located here:
{root}\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\
The best way is to open the "Visual Studio Command Prompt" and then enter the lines above.
You can use the Visual Studio command prompt. dumpbin is available then.
In Visual Studio Professional 2017 Version 15.9.13:
First, either:
or
Then, wait for it while it is "getting things ready..." and being "almost there..."
Switch to the "Individual components" tab
Scroll down to the "Compilers, build tools, and runtimes" section
Check "VC++ 2017 version 15.9 v14.16 latest v141 tools"
like this:
After doing this, you will be blessed with not just one, but a whopping four instances of DUMPBIN:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\dumpbin.exe
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\dumpbin.exe
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\dumpbin.exe
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\dumpbin.exe
Dumpbin.exe
of VS2005
generally presents in C:\Program Files\Microsoft Visual Studio 8\VC\bin
. If you would have installed VS2005
in drive other the C
, please search in that.
And then set that path in the system variable PATH
.
You probably need to open a command prompt with the PATH set up properly. Look for an icon in the start menu that says something like "Visual C++ 2005 Command Prompt". You should be able to run dumpbin (and all the other command line tools) from there.
You can use the Visual Studio command prompt. dumpbin is available then.
You probably need to open a command prompt with the PATH set up properly. Look for an icon in the start menu that says something like "Visual C++ 2005 Command Prompt". You should be able to run dumpbin (and all the other command line tools) from there.
By default, it's not in your PATH. You need to use the "Visual Studio 2005 Command Prompt". Alternatively, you can run the vsvars32 batch file, which will set up your environment correctly.
Conveniently, the path to this is stored in the VS80COMNTOOLS environment variable.
You probably need to open a command prompt with the PATH set up properly. Look for an icon in the start menu that says something like "Visual C++ 2005 Command Prompt". You should be able to run dumpbin (and all the other command line tools) from there.
A little refresh as for the Visual Studio 2015.
DUMPBIN is being shipped within Common Tools for Visual C++, so be sure to select this feature in the process of installation of Visual Studio. The utility resides at:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\
It become available within Developer Command Prompt for VS 2015, which can be executed from Start Menu:
Visual Studio 2015 \ Visual Studio Tools \ Developer Command Prompt for VS2015
If you want to make it available in the regular command prompt, then add the utility's location to the PATH environment variable on your machine.
In Visual Studio Professional 2017 Version 15.9.13:
First, either:
or
Then, wait for it while it is "getting things ready..." and being "almost there..."
Switch to the "Individual components" tab
Scroll down to the "Compilers, build tools, and runtimes" section
Check "VC++ 2017 version 15.9 v14.16 latest v141 tools"
like this:
After doing this, you will be blessed with not just one, but a whopping four instances of DUMPBIN:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\dumpbin.exe
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\dumpbin.exe
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\dumpbin.exe
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\dumpbin.exe
Source: Stackoverflow.com