Solved

Remove the Full Path of a PDB File in a DLL

Posted on 2012-04-11
3
1,164 Views
Last Modified: 2012-04-12
Hello,

Does anyone know how to remove the full path of a PDB file from a C# dll or exe file?

I noticed that the full path where my project is stored in my computer shows up whenever a debug error shows up. We do not install the PDB files anyway, but we keep them in case we need to debug a crash dump. So there's no need to hard code the exact location of them in my computer in the dll file.

I even changed the project configuration mode from Debug to Release and the pdb path is still there.  Is there any way to get rid of it?

Thanks.

T.
0
Comment
Question by:TheUndecider
  • 2
3 Comments
 
LVL 20

Expert Comment

by:BuggyCoder
ID: 37834992
i would always have my published code running on production server.

Next i would delete the pdb files manually....
0
 
LVL 27

Accepted Solution

by:
Chinmay Patel earned 500 total points
ID: 37835897
You could disable PDB file generation for Release mode

Go to Project Properties -> Build -> Select Release -> (On bottom right you )Advanced...->Debug Info-> None
0
 
LVL 27

Expert Comment

by:Chinmay Patel
ID: 37835899
Also Please note that, when you leave PDF file with your assembly it gets loaded anyways and it adds a small performance impact.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now