How do you publish a VS.NET app with the .PDB debug file included?
Posted on 2010-04-08
I have a Visual Studio C# .NET application that has an error logging routine implemented for unhandled exceptions. This routine logs the line number that the exception occurred on, and it works fine in debug mode in the dev environment because the .PDB file is present. However, I want to publish a release of my Visual Studio .NET application and still be able to get the line number that unhandled exceptions occurred on without having to deal with any manual downloading of the latest .PDB file or anything that complicated.
I thought this would be a simple setting in the project options, but I have been unable to find anything that works, nor have I been able to find any solutions on Google.