Select to view content in your preferred language

Exclude pdb, xml, etc. files from proConfigX

803
2
Jump to solution
12-06-2021 05:55 AM
RehmSoftware
Regular Contributor

Hi,

today I checked out the proConfigX file of our ArcGIS Pro application and it turns out that even though I built it in release-mode, it contained PDB files of the ArcGIS Pro application and also of the dependencies. I also found XML files of dependencies with the comments generated by VS.

I don't really think it makes sense to include these files in the release target so I wonder if there's an easy way to exclude them or if I have to modify the build process so that these files are wiped before the proConfigX is put together (which is only a zip file with a special structure, if I'm not mistaken).

Thanks in advance

Christian

0 Kudos
1 Solution

Accepted Solutions
KirkKuykendall1
Frequent Contributor

I commented out the pdbonly in the csproj file, cleaned, rebuilt and ran, and the config seems to work.

Still, I wonder why Esri added that option for the Release.

KirkKuykendall1_0-1638805949170.png

 

View solution in original post

2 Replies
KirkKuykendall1
Frequent Contributor

I commented out the pdbonly in the csproj file, cleaned, rebuilt and ran, and the config seems to work.

Still, I wonder why Esri added that option for the Release.

KirkKuykendall1_0-1638805949170.png

 

RehmSoftware
Regular Contributor

Hi Kirk,

thanks for your reply. I didn't know that flag and commenting this line out (or using "none" instead of "pdb-only") does in fact not include the pdb and xml files of the ArcGIS Pro config (the "main program", so to speak).

In order to exclude the xml and pdb files of dependencies as well, I found a solution here: https://stackoverflow.com/questions/2011434/preventing-referenced-assembly-pdb-and-xml-files-copied-...

0 Kudos