views:

132

answers:

1

How to include pdb files in MSI installer to deploy along side the rest of the app?

I want to keep the line numbers and full stack trace in error logs we generate.

Update

The line numbers of the code are not reported in the stacktrace unless you distribute the pdb's, I've tested this.

How can when I build the MSI and I've asked the MSI installer project to include various project outputs (about 5) to also include the pdb's of those project outputs in the MSI? or how to get this information (code line numbers) from the Exception ex into the logs?

+1  A: 

For a Visual Studio Deployment Project you should do:

Add -> Project Output -> Debug Symbols

Also make sure that the *.pdb generation is enabled in each project Build configuration.

João Angelo
Excellent this work and is just what I was looking for, thank you.
m3ntat