Preventing referenced assembly PDB and XML files copied to output
Posted
by Jason Morse
on Stack Overflow
See other posts from Stack Overflow
or by Jason Morse
Published on 2010-01-06T07:14:45Z
Indexed on
2010/04/13
23:03 UTC
Read the original article
Hit count: 452
I have a Visual Studio 2008 C#/.NET 3.5 project with a post build task to ZIP the contents. However I'm finding that I'm also getting the referenced assemblies' .pdb (debug) and .xml (documentation) files in my output directory (and ZIP).
For example, if MyProject.csproj references YourAssembly.dll and there are YourAssembly.xml and YourAssembly.pdb files in the same directory as the DLL they will show up in my output directory (and ZIP).
I can exclude *.pdb when ZIP'ing but I cannot blanket exclude the *.xml files as I have deployment files with the same extension.
Is there a way to prevent the project from copying referenced assembly PDB and XML files?
© Stack Overflow or respective owner