on a Web Setup, how do I exclude all .pdb files?
-
28-09-2019 - |
Question
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 ?
Solution
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow