2
  1. Delete all pdb files from Project/bin folder.
  2. In project settings -> Compi9le -> Advanced, set 'Generate debug info' to 'None' (instead of pdb-only).
  3. Recompile project (in Release mode, with Generate debug info == None).
  4. Visual studio creates pdb files in my project's bin folder even though Generate debug info is still None.

Why? And how can I get Visual Studio to stop generating these pdb files?

Nadeem_MK
  • 7,533
  • 7
  • 50
  • 61
pabrams
  • 1,157
  • 10
  • 34
  • possible duplicate of [Why is there a pdb file in my Release directory?](http://stackoverflow.com/questions/1642371/why-is-there-a-pdb-file-in-my-release-directory) – Cᴏʀʏ Feb 06 '13 at 17:20

1 Answers1

0

Are you certain that you have changed it for the correct build config. eg. You changed it for Release but you are compiling under debug?

CathalMF
  • 9,705
  • 6
  • 70
  • 106
  • Thanks for your comment. I'm certain that I'm compiling in Release, and have changed the option in Release mode. I've just repeated the steps in my original post to confirm. – pabrams Feb 06 '13 at 17:21
  • I have done a few tests and found that it works fine but if you have a multiple project solution and your project references another project which is creating the .pdb files they will be copied to your build folder. Are you sure they are .pdb files for your current project? – CathalMF Feb 06 '13 at 17:23