In .Net,Is there a way to find the path where an exe or dll is compiled? Is there any tool or a method to find it? I have the exe and dlls, is there a way to back track from the exe or dll
Asked
Active
Viewed 130 times
0
-
1are you using an IDE? – Rana Feb 12 '16 at 22:07
-
1Do you mean if I compiled the dll on my computer, and you ran it on your computer, you would want it to report the path on my computer where it was compiled? – hatchet - done with SOverflow Feb 12 '16 at 22:14
-
Because if you're wanting the situation hatchet describes, that would be a horrible security problem if it were possible. – Teepeemm Feb 12 '16 at 22:16
-
I deployed this application in the server long back and i lost track of the latest code. So to track the latest code i was trying to find the path where it was compiled. I hope this makes sense now.. – Feb 12 '16 at 23:36
1 Answers
4
If you have the .pdb file, it will contain the path that it was compiled in. I have no idea how to read it though. Maybe this will get you started (if it's an option for you): How to read source path from pdb

Community
- 1
- 1

Gabriel Luci
- 38,328
- 4
- 55
- 84
-
You can also do this using the PE32 debug section. The debug section has the location of the output pdb file. I can put together an example of grabbing it. – Will Feb 12 '16 at 22:22