Share via


How to customize the drop location in team build?

For eaxmple in your tfsbuild.proj, the value of DropLocation is \\machine\drop1 and you want to change it to \\machine\drop2.

  • Edit your build type definition (tfsbuild.proj) file and overload the BeforeEndToEndIteration

<

Target Name="BeforeEndToEndIteration">

<

CreateProperty Value="$(CustomDropLocation)" >

<

Output TaskParameter="Value" PropertyName="DropLocation"/>

</

CreateProperty>

</

Target>

  • Edit the tfsbuild.rsp file to pass the custom value of drop location.

Add the following line to tfsbuild.rsp. This along with changes in step (1) will reset your DropLocation.

/p:CustomDropLocation=\\machine\drops2

For more details about the overriding precedence for msbuild properties, refer this post.

Comments

  • Anonymous
    April 12, 2006
    Anutthara talks about using Team Build with VSS or your own source control.

    Paul Whitaker blogs about...
  • Anonymous
    May 24, 2006
    Hi,

    Is there a way to determine what the actual drop location is? So this way you archive drops and can still deploy the app from the drop to a test/production?

    Thanks.

    Alexey.
  • Anonymous
    July 10, 2006
    Hi,

    I'ld like to have a folder created in the drop location for each solution in the build project.  Is there a way to pass the solution name to the drop task using the /p:CustomDropLocation parameter.  Or how would you suggest doing this otherwise?

    Thanks,
    David