A task for easy setting DebugType & Optimize on each vs-project

May 7, 2009 at 4:05 PM
Edited May 8, 2009 at 7:17 AM

Having 6 days MSBuild & TFSBuild experience.
I'm looking for a solution (a task?) to solve my problem:

Each visual studio project file has some PropertyGroup defined with differend Conditions, for example:
...
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>no</Optimize>
...

In all my Team Foundation Server Build definitions i want to override this somehow, on an easy way.
A build definition needs to be able to set DebugType to "none" and Optimize to "yes".

Or should i just modify all my projecst or the TFSBuild.rsp file and provide msbuild parameters?
A link with info: http://msdn.microsoft.com/en-us/library/ms171481.aspx

Greetings,
Raymond de Jong

May 11, 2009 at 7:04 AM
Edited May 11, 2009 at 7:57 AM

hmm.. no solution?

For now i added an line to the .rsp file

# This is a response file for MSBuild
# Add custom MSBuild command line options in this file
/p:DebugType=none