p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   NAnt (http://p2p.wrox.com/nant-367/)
-   -   change path of pdb file in headers of dll file (http://p2p.wrox.com/nant/85943-change-path-pdb-file-headers-dll-file.html)

sarinm December 7th, 2011 05:44 AM

change path of pdb file in headers of dll file
 
Is there a way in nant/visual studio/Other tools to change path of pdb file in headers of dll file from absolute to relative?
i.e
If i do dumpbin /headers on my library file i get:
Time Type Size RVA Pointer -------- ------ -------- -------- -------- 4AE9A239 cv 4F 0001A9A8 197A8 Format: RSDS, {7B0C89D0-69E1-4A12-817C-424F209FAB10}, 1, D:\Projects\workspace\bin\Release\MyLibrary.pdb.

Instead of "D:\Projects\workspace\bin\release\MyLibrary.p db"
i want to show only "bin\release\MyLibrary.pdb" or just "MyLibrary.pdb" .

I have seen solution for this problem in case of C/C++ assembly but i didn't got any solution for C# assembly although there are many microsoft C# assemblies having this relative path feature.
Does anyone know how to do this?

planoie December 12th, 2011 01:30 PM

Are you sure that the PDB file paths you are seeing are the actual values from the binary or is it possible that they are the result of the tool you are using to dump the binary?


All times are GMT -4. The time now is 05:04 PM.

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.