?
Solved

Remove the Full Path of a PDB File in a DLL

Posted on 2012-04-11
3
Medium Priority
?
1,209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month8 days, 20 hours left to enroll

764 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