2

I have a solution with an application and a library. When debugging - breakpoints don't work and I've found (with the help of this answer) that it's because the pdb file of the library isn't copied into the application's debug folder.

I can change the output folder manually in Properties - Build - Output. But that seems like the wrong way. Visual Studio is supposed to do that automatically.

So: How do I fix Visual Studio to copy the pdb file?

Community
  • 1
  • 1
ispiro
  • 26,556
  • 38
  • 136
  • 291

1 Answers1

3

You may not have a reference to the project, but to the DLL only. Try to delete the reference to the library and add it again. Make sure you don't select the DLL as reference but select the project from from the reference manager:

enter image description here

Michael Sander
  • 2,677
  • 23
  • 29
  • +1. Very good! Now it's copying it. But not to where VS is looking for it (a folder named `AppX` inside the debug folder). Strange. – ispiro Aug 12 '15 at 19:35
  • you know that you can set the build output folders for each build type (debug, release, ...) individually? Maybe you changed just one of them. – Michael Sander Aug 12 '15 at 19:37