pdb files appear in website publish folder

Viewed 17024

I have asp.net website which when published using build > publish website option in VS2010 and even when checking omit debug information option in website publish window,published folder still contains pdb files is there a way to avoid this behavior?

5 Answers

Follow the instructions step-by-step to prevent PDB files being generated after publish:

I have attached screenshot with all steps using MS Visual Studio Community 2017 version:

Settings to prevent PDB files

If you have precompile during publishing enabled:

Under publish settings tab click on file publish options to expand that section.

Next click on the configure link next to 'Precompile during publishing' option. Then make sure Emit debug information is not checked in the popup window.

Related