Solved

Remove the Full Path of a PDB File in a DLL

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ASP.net VB.net Errors when sending data to SQL 5 20
Video Player 11 23
Following an example - Why do I need to click Save button twice? 3 26
ASP.NET MVC identity 6 27
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…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

831 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