C# 找不到 Dumpbin.exe
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/477387/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cannot find Dumpbin.exe
提问by
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.
我在我的系统上没有看到 dumpbin.exe。我的系统上有 Visual Studio 2005。当我在命令行上输入 dumpbin 时,它显示无法识别的命令。
Does it come with Visual Studio by default, or do I have to explicitly add this tool?
它是默认随 Visual Studio 一起提供的,还是必须明确添加此工具?
回答by Greg Hewgill
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.
您可能需要在正确设置 PATH 的情况下打开命令提示符。在开始菜单中查找类似“Visual C++ 2005 命令提示符”的图标。您应该能够从那里运行 dumpbin(以及所有其他命令行工具)。
回答by Roger Lipscombe
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.
默认情况下,它不在您的 PATH 中。您需要使用“Visual Studio 2005 命令提示符”。或者,您可以运行 vsvars32 批处理文件,这将正确设置您的环境。
Conveniently, the path to this is stored in the VS80COMNTOOLS environment variable.
方便的是,此路径存储在 VS80COMNTOOLS 环境变量中。
回答by rashok
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
.
Dumpbin.exe
的VS2005
一般出现在C:\Program Files\Microsoft Visual Studio 8\VC\bin
。如果您已安装VS2005
在其他驱动器中C
,请在其中搜索。然后在系统变量中设置该路径PATH
。
回答by anhoppe
You can use the Visual Studio command prompt. dumpbin is available then.
您可以使用 Visual Studio 命令提示符。dumpbin 然后可用。
回答by Marks
Instead of using the dumpin.exe it is possible to call the link.exewith several options:
除了使用 dumpin.exe 之外,还可以使用多个选项调用link.exe:
Example: link /dump /all myfile.lib
例子: link /dump /all myfile.lib
For detailed options see output of link /dump
有关详细选项,请参阅输出 link /dump
In case of Visual Studio C++ Express installation, the link.exe is located here:
对于 Visual Studio C++ Express 安装,link.exe 位于此处:
{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.
最好的方法是打开“Visual Studio 命令提示符”,然后输入上面的行。
回答by Deilan
A little refresh as for the Visual Studio 2015.
对 Visual Studio 2015 进行一点刷新。
DUMPBINis 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:
DUMPBIN随Visual C++ Common Tools 一起提供,因此请务必在安装 Visual Studio 的过程中选择此功能。该实用程序位于:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\
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:
它在VS 2015 的 Developer Command Prompt 中可用,可以从“开始”菜单执行:
Visual Studio 2015 \ Visual Studio Tools \ Developer Command Prompt for VS2015
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 variableon your machine.
如果要使其在常规命令提示符下可用,请将实用程序的位置添加到计算机上的 PATH 环境变量中。
回答by Ben
回答by Ezra Steinmetz
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
至于VS2017
,我在下面找到了C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\Hostx64\x64
回答by Mike Nakis
In Visual Studio Professional 2017 Version 15.9.13:
在 Visual Studio Professional 2017 版本 15.9.13 中:
First, either:
- launch the "Visual Studio Installer" from the start menu, select your Visual Studio product, and click "Modify",
or
- from within Visual Studio go to "Tools" -> "Get Tools and Features..."
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"
首先,要么:
- 从开始菜单启动“Visual Studio 安装程序”,选择您的 Visual Studio 产品,然后单击“修改”,
或者
- 从 Visual Studio 中转到“工具”->“获取工具和功能...”
然后,等待它“准备好东西......”并“几乎在那里......”
切换到“单个组件”选项卡
向下滚动到“编译器、构建工具和运行时”部分
勾选“VC++ 2017 version 15.9 v14.16 最新v141工具”
like this:
像这样:
After doing this, you will be blessed with not just one, but a whopping fourinstances of DUMPBIN:
完成此操作后,您将获得的不仅仅是一个,而是多达四个DUMPBIN 实例:
C:\Program Files (x86)\Microsoft Visual Studio17\Professional\VC\Tools\MSVC.16.27023\bin\Hostx64\x64\dumpbin.exe
C:\Program Files (x86)\Microsoft Visual Studio17\Professional\VC\Tools\MSVC.16.27023\bin\Hostx64\x86\dumpbin.exe
C:\Program Files (x86)\Microsoft Visual Studio17\Professional\VC\Tools\MSVC.16.27023\bin\Hostx86\x64\dumpbin.exe
C:\Program Files (x86)\Microsoft Visual Studio17\Professional\VC\Tools\MSVC.16.27023\bin\Hostx86\x86\dumpbin.exe