如何在.NET程序集中找到相应的.pdb? [英] How to find corresponding .pdb inside .NET assembly?
本文介绍了如何在.NET程序集中找到相应的.pdb?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
显然,当.NET程序集被创建时,相应的.pdb文件路径的位置被包含在里面。链接供参考:
https://msdn.microsoft.com/en -us / library / ms241613.aspx
如何访问?我试过使用ILSpy来查看我的程序集,但找不到。
解决方案
您可以使用 dumpbin 工具从开发人员命令提示符,例如一个这样的cmd行
dumpbin / HEADERS YourAssembly.exe
将显示调试目录部分中PDB文件的路径,类似于此
< pre class =lang-none prettyprint-override>
Microsoft(R)COFF / PE Dumper版本14.00.24213.1
版权所有(C)Microsoft Corporation。版权所有。
文件转储YourAssembly.exe
...
调试目录
时间类型大小RVA指针
-------- ------- -------- -------- --------
570B267F cv 11C 0000264C 84C格式:RSDS,{241A1713-D2EF-4838-8896-BC1C9D118E10},1,
C:\temp\VS\obj\Debug\YourAssembly.pdb
...
Apparently, when a .NET assembly is created the location of the corresponding .pdb file path is included inside. Link for reference: https://msdn.microsoft.com/en-us/library/ms241613.aspx
How do I access this? I have tried using ILSpy to look inside my assembly but could not find.
解决方案
You can use the dumpbin tool from a Developer Command Prompt, e.g. a cmd line like this
dumpbin /HEADERS YourAssembly.exe
would show the path to the PDB file in the Debug Directories section similar to this
Microsoft (R) COFF/PE Dumper Version 14.00.24213.1
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file YourAssembly.exe
...
Debug Directories
Time Type Size RVA Pointer
-------- ------- -------- -------- --------
570B267F cv 11C 0000264C 84C Format: RSDS, {241A1713-D2EF-4838-8896-BC1C9D118E10}, 1,
C:\temp\VS\obj\Debug\YourAssembly.pdb
...
这篇关于如何在.NET程序集中找到相应的.pdb?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文