4

In a sample solution on Visual Studio 2008, let's say, I have this:

  • myWebSite project (web site project)
  • myLibrary project (library project)
  • myWebsiteDeploy project (web deployment project)
  • myWebSetup project (web setup project)

inside myWebSite there is a myLibrary.dll and myLibrary.pdb witch they are included in the myWebSiteDeploy project and pass to the myWebSetup

How can I tell myWebSeiteDeploy or myWebSetup to exclude all *.pdb files as they are not needed in a deployed website ?

balexandre
  • 73,608
  • 45
  • 233
  • 342

1 Answers1

1

Open the project properties in Visual Studio. Select the "Build" tab, change your "Configuration" to "Release" and click on the "Advanced" button. Change debug info to "none". Then the build will not create the .pdb files.

Martin Buberl
  • 45,844
  • 25
  • 100
  • 144
  • This does not work (as there is no such option) if it's a Website Project (the one that you can create a Deployable Version of the website so you can protect the source code of the website. – balexandre Apr 19 '11 at 14:53