本文介绍了如何在.NET程序集中找到相应的.pdb?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
显然,当.NET程序集被创建时,相应的.pdb文件路径的位置被包含在里面。链接供参考: msdn.microsoft/en -us / library / ms241613.aspx
如何访问?我试过使用ILSpy来查看我的程序集,但找不到。
解决方案您可以使用 dumpbin 工具从开发人员命令提示符,例如一个这样的cmd行
dumpbin / HEADERS YourAssembly.exe将显示调试目录部分中PDB文件的路径,类似于此
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: msdn.microsoft/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.exewould 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?
发布评论