We help IT Professionals succeed at work.

Release Build Has .PDB Files

Medium Priority
188 Views
Last Modified: 2019-05-24
Hi Experts!

Have a C# project. The problem is in the Visual Studio 2017 solution when I try to manually build the project in release mode; in the release folder I expect to see only .dll assemblies, but there are also the .pdb files.

  1. Have tried to google for an answer, but didn't find anything useful.
  2. Have tried to 'Clean' the project and then build.
  3. Have tried creating a Publish build.
  4. Have tried repairing my VS 2017 and still outputs .pdb when buidling in release mode.

Last option is to uninstall and re-install VS 2017; haven't tried that, yet.

Here's the VS 2017 info:

Visual Studio 2017
Here's the project settings:

Project Setting

Project Build Setting
Here's the Publish Build settings:

Publish Build Setting
Any ideas?

TIA!
Comment
Watch Question

CERTIFIED EXPERT
Commented:
allanau20,

check the "debugging information" in the "Advanced" settings of your "Build" settings. The button in the lower right.
Setting should be None for no PDB.

leflon

Author

Commented:
Hi leflon.

Oh man; how come I didn't see that. Thanks a bunch leflon!!

Project Build Setting

projectAdvancedBuildSetting.png

Author

Commented:
Thank you!!
CERTIFIED EXPERT

Commented:
Hi allanau20,

glad I could help, it's a pleasure.

leflon

Explore More ContentExplore courses, solutions, and other research materials related to this topic.