4

IDE: I use Visual Studio 2015 Update 3 (Language: C#, .NET 4.5).

Issue: When I compile a release solution a PDB file is generated.

Question: How to disable PDB file creation in Visual Studio 2015?

Vlastimil Burián
  • 3,024
  • 2
  • 31
  • 52

1 Answers1

11
  1. In the main menu navigate to Project, and at the bottom Project Name Properties.

  2. In the left pane, click on Build, then you should see:

Project Properties -> Build

  1. Now, click on Advanced button at the bottom-right corner.

  2. Finally, you can chose None in Debug info.

Vlastimil Burián
  • 3,024
  • 2
  • 31
  • 52
  • Do you know how to do this for a C/C++ project? – langlauf.io Feb 27 '18 at 09:53
  • @stackoverflowwww No, I have tried and tested only a C# solution. – Vlastimil Burián Feb 27 '18 at 11:30
  • This successfully controls whether Build puts a .pdb for my .exe, but the various .dll are still receiving their .pdb files. Is there a way to disable .pdb being created for any of the library .dll when using Build? – cusman Jun 29 '23 at 19:49
  • @cusman Hello. I completely transitioned to Linux many years ago. Do not have access to Visual Studio to check this out. Asking search engine might help more. Cheers. – Vlastimil Burián Jun 30 '23 at 07:00