Hi Martin and William, Thank you for you're replies. William: When I use %(ConfigurationToBuild.FlavorToBuild) it gives me the following error:
Error MSB4043: The item metadata reference "%(ConfigurationToBuild.FlavorToBuild)" is invalid because it is qualified with an item name. Item metadata referenced in transforms do not need to be qualified, because the item name is automatically deduced form the items being transformed. Change "%(ConfigurationToBuild.FlavorToBuild)" to "%(FlavorToBuild)". Martin: I used you're suggestion about using the BeforeDropBuild activity and it works like a charm. Thank you, Marcel van Laar Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Martin Woodward Verzonden: Wednesday, September 24, 2008 08:44 Aan: [email protected] Onderwerp: RE: [OzTFS] Copy task using BuildType/FlavorToBuild 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)%(Extension)')" /> </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 _____________________________________________________________________________________________ This message has been checked for all known viruses by KPN IV-Scan, powered by MessageLabs. For further information visit: http://www.koper-it.nl _____________________________________________________________________________________________ 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 ________________________________ 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
