Thanks for your ideas everyone, I found a solution built into
Team Foundation Build itself.

I found the following section in 
Microsoft.TeamFoundation.Build.targets.

  <!--
       Override this target to execute a task for customizing the 
       build number and/or drop location.
       Make sure that the task outputs properties with the names 
       'BuildNumber' and/or 'DropLocation'.
    -->
  <Target Name="BuildNumberOverrideTarget" />

This target gets fired right before InitializeEndToEndIteration which
then uses the UpdateBuildNumberDropLocation task to write these
properties back to TFS. 

Cheers,

David Feilen
Employment Systems Group 
Department of Education, Employment and Workplace Relations 
http://www.deewr.gov.au 
Ph. 6121 8393 
Ext. 68393  

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
> Behalf Of William Bartholomew
> Sent: Friday, February 15, 2008 6:46 PM
> To: [email protected]
> Subject: RE: [OzTFS] Overriding queued DropLocation
> 
> David,
> 
> TFS 2008 has a SetBuildProperties task
> (http://msdn2.microsoft.com/en-us/library/bb399143.aspx) 
> which you could use to override the user specified value. You 
> would have to override one of the built-in targets to execute 
> this task, I'm not sure what target would be best but I'd try 
> BeforeDropBuild which is the target that fires immediately 
> before the drop happens. For example you could add the 
> following to your TFSBuild.proj to enforce drop folders based 
> on the TeamProject name and
> BuildNumber:
> 
> <Target Name="BeforeDropBuild">
>       <SetBuildProperties
>           TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
>           BuildUri="$(BuildUri)"
>           
> DropLocation="\\server\share\$(TeamProject)\$(BuildNumber)" 
> /> </Target>
> 
> Let us know how you go...
> 
> Regards,
> William

Notice:
The information contained in this email message and any attached files
may be confidential information, and may also be the subject of legal
professional privilege. If you are not the intended recipient any use,
disclosure or copying of this email is unauthorised. If you received
this email in error, please notify the DEEWR Service Desk and delete all
copies of this transmission together with any attachments.



OzTFS.com - to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject. View the web archives at 
http://www.mail-archive.com/[email protected]/
Powered by mailenable.com, supported by www.readify.net


Reply via email to