Marcel,

 

You can use %(ConfigurationToBuild.FlavorToBuild) instead of hard-coding
"Debug" or "Release".  Note that if your build was running multiple
configurations then that task work get executed once per flavour.  If this
wasn't what you wanted then there are ways around that - let me know if you
need more details.

 

Also, If you were to do that activity Before Drop Build then you can copy
the files around locally into your BinariesRoot foler and avoid the copying
over the network.  The contents of the BinariesRoot folder is copied during
the Copy to drop location performed by Team Build.    If you do it before
the drop then the $(OutDir) property might be pointing to the folder that
you want anyway (with Debug/Release etc already included).

 

Good luck,

 

Martin.

 

 

Martin Woodward.  Senior Software Engineer, Microsoft MVP (Team System).

Teamprise, a division of SourceGear LLC.

US Phone: +1 217-531-7854

UK Phone: +44 (0)2894 335006

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Marcel van Laar
Sent: 24 September 2008 07:27
To: [email protected]
Subject: [OzTFS] Copy task using BuildType/FlavorToBuild

 

Hi,

 

Is there a way to use the "BuildType" or "FlavorToBuild" (Debug/Release) in
the copy task?

 

I have the following:

    <Target Name="AfterDropBuild">

 

        <CreateItem
Include="$(SolutionRoot)/Main/Source/Common/SharedBinaries/**/*" >

            <Output ItemName="SharedBinaries" TaskParameter="Include" />

        </CreateItem>

<!-- Copy to the DEBUG folder -->

        <Copy SourceFiles="@(SharedBinaries)"
DestinationFiles="@(SharedBinaries
->'$(DropLocation)\$(BuildNumber)\Debug\%(RecursiveDir)%(FileName)%(Extensio
n)')" />

    </Target>

 

I don't like to hardcode the Debug part. Is there a way to avoid this?

 

Thank you,

Marcel van Laar

 

  _____  

De informatie, verzonden in of met dit e-mailbericht, is vertrouwelijk en
uitsluitend voor de geadresseerde(n) bestemd. Het gebruik van de informatie
in dit bericht, de openbaarmaking, vermenigvuldiging, verspreiding en/of
verstrekking daarvan aan derden is niet toegestaan. Gebruik van deze
informatie door anderen dan geadresseerde(n) is strikt verboden. Aan deze
informatie kunnen geen rechten worden ontleend. U wordt verzocht bij
onjuiste adressering de afzender direct te informeren door het bericht te
retourneren en het bericht uit uw computersysteem te verwijderen.

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 




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