Jack
Jack

Reputation: 10037

ASP.net web site Release build include pdb files. How do i get rid of them?

I use WebDepolymentAdd for VS 2008 to do the final build of my web site. This is web site and not web application project.

I set the build to Release and not debug and after i did the build. In the bin folder it contain .pdb and .xml for third party .dll for example the AJAXcontrol and also .compiled file. Do i need to include those files for final release? How do i get rid of them?

I also notice it created PrecompiledApp.config too. Is that file require?

Thank

Jack

Upvotes: 3

Views: 5531

Answers (3)

ninj
ninj

Reputation: 1549

If you publish your web site (even to a spare directory in your filesystem) you can tell VS to only copy the files that you actually need to run your app.

Upvotes: 0

Mcbeev
Mcbeev

Reputation: 1529

The .pdb file is just the symbol file. On a Release build it's not all the useful because you will most likely have debug set to false. The xml file is most likely the xml comments from the code in the assembly, again not needed normally.

Upvotes: 2

Mitch Wheat
Mitch Wheat

Reputation: 300579

You don't need to include the .pdb files for the final release, but there are some benefits in doing so, such as being able to debug the live site with symbols.

This article shows how to turn this on/off.

Upvotes: 5

Related Questions