C# – a PDB file

cpdb-files

What is a PDB file and how can I exclude it from the release folder when I rebuild my solution?

Best Answer

A PDB file contains information for the debugger to work with. There's less information in a Release build than in a Debug build anyway. But if you want it to not be generated at all, go to your project's Build properties, select the Release configuration, click on "Advanced..." and under "Debug Info" pick "None".