How do I get the Publish Website command to extract the PDB files for my Visual Studio 2005 Web Site project?

I have a VS 2005 website project (and not a web application project model, a "website" project model), and I want to be able to include PDB files for assembling pages in the bin folder through Publish Website in Visual Studio to help debug the problem.

No matter what I try to use in the "Debug / Release" settings, I can’t get the PDB files for building the website, which will be displayed in the bin folder after the site is published. I get them for any links to external links, but not for real builds of the site code that I need.

How do I get Visual Studio to include these files when publishing using the website project model?

+5
source share
1 answer

The Publish team always compiles your project for release, and I have not found a way to cause the creation of pdb files during precompilation.

There is a workaround I tried. If during the pre-compilation you check the box "Allow this pre-compiled site to be updated" and then update the website in place, this will lead to dynamic compilation. Dynamic compilation should contain debugging code and pdb files if you have the web.config options set:

 <compilation defaultLanguage="your language" debug="true" />

Here is a good blog post about various publishing options.

+5

All Articles