Search code examples
configurationtfsbuild

How can you determine the ConfigurationBuild type for a TFSBuild?


I have Debug|Any CPU and Release|Any CPU as my two configuration types. Is there any way I can tell the TFSBuild which one to 'build'?


Solution

  • Undocumented switch msBuildArguments:

    TFSBuild.exe start /queue %TFSSVR% %TEAMPROJECT% %BUILDTYPE% /msBuildArguments:"/p:Configuration=Debug"
    

    Or documented text file with name TFSBuild.rsp near your build script and with content:

    /p:Configuration=Debug
    

    EDIT:
    each line can have one /p:XXXXX build argument.