0

I am using MSBuild command line to build my project and with the help of DebugType=None, the project is no longer producing a PDB file when it compiles - which is what I need as these mess up Clickonce Deployment. However all of the referenced DLLs of the project get copied to the build output folder along with THEIR PDB files.

Is there any way I can prevent MSBuild including referenced library PDBs when copying build output?

Matt Johnson-Pint
  • 230,703
  • 74
  • 448
  • 575
NZJames
  • 4,963
  • 15
  • 50
  • 100
  • 2
    You could add a post-build step to remove any PDBs from the output dir if there isn't a 'proper' solution to this. – PhonicUK Sep 14 '12 at 10:49
  • 1
    This looks like a duplicate for http://stackoverflow.com/questions/2011434/preventing-referenced-assembly-pdb-and-xml-files-copied-to-output – GrahamMc Sep 14 '12 at 11:50

0 Answers0