3

I have a weird problem with PDB files in a VS 2013 C# project. Basically what is happening is that the PDB files are not getting rebuilt when the project is getting rebuilt. This is causing the project to always think it needs to get rebuilt. I've tried cleaning the solution, but if anything changes in the project it gets put back into the same state again.

I created a simple class library project and the behavior was the same. As a sanity check, I created the same class library on another PC and it worked as I would have expected.

Does anybody have any ideas as to what might be causing this strange behavior?

Cᴏʀʏ
  • 105,112
  • 20
  • 162
  • 194
Eric Gurney
  • 263
  • 2
  • 11

3 Answers3

8

Please check “Advanced Build Settings Dialog Box”

Is “Debug Info” set none?

see MSDN

feiyun0112
  • 761
  • 5
  • 7
  • I've tried full and pdb-only. If I set to none my build problem goes away, but then I won't have a pdb debug information right? – Eric Gurney Dec 05 '14 at 02:43
1

I had this problem. I went into Build > Configuration Manager. Make sure that the active solution configuration is Debug. Next change the platform to be Any CPU. Somehow many projects were getting built on a mixed platform which was only allowing a couple project's pdb files to get built.

0

I have exactly the same problem. The only solution I've managed to come up with is to add a pre-build step to each project to delete the .pdb:

del "$(ProjectDir)obj\$(Configuration)\$(TargetName).pdb"

Which then seems to force it to create a new file when it's built.

k c
  • 88
  • 8