The C # compiler supports this using the / pdb command line . However, this option does not appear on the Create IDE tab.
The IDE build process already asks the C # compiler to place the .pdb file in the obj \ Debug directory. Its copy ends in bin \ Debug with an MSBuild task named CopyFilesToOutputDirectory. This task is configured in the Microsoft.Common.targets file, a file located in the c: \ windows \ microsoft.net \ framework \ v3.5 directory for VS2008. You can technically edit this file and delete the <Copy> element that copies .pdb. Note the warning at the top of the file, be sure to make a backup before changing it.
I think that the main problem that you will encounter is that this affects all builds of all projects. And that the debugger can no longer find the .pdb file. This will be the ultimate show stopper.
source share