Team Foundation Server– Debug symbols(pdb files) generated in Release build? Fix it.
- by Gopinath
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