Solved

Remove the Full Path of a PDB File in a DLL

Posted on 2012-04-11
3
1,156 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This video discusses moving either the default database or any database to a new volume.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 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

15 Experts available now in Live!

Get 1:1 Help Now