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

Filed under:
|
|

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

  1. Go to Team Explorer
  2. Select Build Defintion >> Edit Build Definition
  3. Switch to Process tab
  4. Navigate to Advanced Section and locate MSBuild Arguments
  5. Add the following: /p:Configuration=Release /p:DebugType=none

tfs_specifying_msbuild_supress_debug_pdb_files


© Tech Dreams or respective owner

Related posts about Microsoft

Related posts about programming