YoTo Blog

Hide pbd file when publishing C# .net


What is a PBD file?

Programe Debug Database
When an error occurs in the program when publishing and distributing a project,
it is a file that helps to display the line number and file location where the error occurred in the project.


Hide PBD file

Project Properties -> Build -> General
Change the debug symbol settings.
C# pbd file settings

  • No exported symbols: Exclude PBD files.
  • PDB file, current platform: Includes PBD files as separate files. Available only for the currently built OS.
  • PDB file, moveable between platforms: Includes PBD files as separate files. It is also available for other OSes.
  • Included in DLL/EXE, portable across platforms: PBD files are not shown as actual files, but are published by including them in exe or dll.

Developers can choose according to the nature of the project and the client's situation.