swap
swap

Reputation: 85

Is there any setting in the code, config or visual studio to NOT generate .PDB file in published code?

When I'm publishing the .net code via visual studio in RELEASE mode then it is creating .PDB files every time in the published folder.

Expected Result: Is that. I don't want .PDB files to generate after code publish.

Upvotes: 2

Views: 778

Answers (1)

Bradley Smith
Bradley Smith

Reputation: 13601

If you right-click the project in the Solution Explorer and choose Properties, then go to the Build tab and click the Advanced button, you will see an option to control whether to generate debugging information. Set this to None in your release configuration and no PDB file will be generated.

Screenshot

Upvotes: 3

Related Questions