On web setup, how can I exclude all .pdb files?

In the sample Visual Studio 2008 solution, let's say I have the following:

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

inside myWebSite there is myLibrary.dll and myLibrary.pdb if they are included in the myWebsiteDeploy project and go to myWebSetup

How can I say myWebSeiteDeploy or myWebSetup to exclude all * .pdb files since they are not needed on a deployed website?

+4
source share
1 answer

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

+1
source

All Articles