Control pdb file output from build defintion file

Posted by Urvi on Stack Overflow See other posts from Stack Overflow or by Urvi
Published on 2009-12-16T17:05:12Z Indexed on 2010/04/13 23:52 UTC
Read the original article Hit count: 335

Filed under:
|
|

Hello,

I am trying to generate a release build with no pdb files generated. I have seen numerous posts that suggest right-clicking on the project, selecting Properties, going to the Build tab and then to the Advanced... butoon and changing Debug Info to none. This works and all, but I need to do this for a build of ~50 solutions which contain ~25 projects each! Other posts mention editing the appropriate .csproj file, but again, with so many projects, this would take a long time. Is there any way to achieve this via the TFSBuild.proj file?

I have tried adding the following to the TFSBuild.proj file, with no luck.

<PropertyGroup>
  <Configuration>Release</Configuration>
  <Platform>AnyCPU</Platform>
</PropertyGroup>

<PropertyGroup>
  <DebugSymbols>false</DebugSymbols>
  <DebugType>none</DebugType>
  <Optimize>true</Optimize>
</PropertyGroup>

The following line prints out Release|AnyCPU, none, and false, but I still see .pdb file in the $(OutputDir) folder.

<Message Text="$Configuration|Platform): $(Configuration)|$(Platform)" />
<Message Text="DebugType is: $(DebugType)"/>
<Message Text="DebugSymbols is: $(DebugSymbols)"/>

Thanks in advance, Urvi

© Stack Overflow or respective owner

Related posts about msbuild

Related posts about pdb-ms