Team Foundation Server– Debug symbols(pdb files) generated in Release build? Fix it.
Posted
by Gopinath
on Tech Dreams
See other posts from Tech Dreams
or by Gopinath
Published on Tue, 27 Nov 2012 01:02:29 +0000
Indexed on
2012/11/27
5:23 UTC
Read the original article
Hit count: 213
Yesterday I setup TFS for my .NET playground website to implement continuous integration and deployments. After a successful build I noticed that debug symbols(pdb files) were generated even though TFS is configured to build in Release mode. After a bit of analysis its turned out to be the behavior of TFS to generate debug symbols (pdb files) until we pass the attribute DebugType = None. Here are the steps to pass DebugType parameter to MSBuild of TFS
- Go to Team Explorer
- Select Build Defintion >> Edit Build Definition
- Switch to Process tab
- Navigate to Advanced Section and locate MSBuild Arguments
- Add the following: /p:Configuration=Release /p:DebugType=none
© Tech Dreams or respective owner