Last post Mar 14, 2011 11:08 AM by XiaoCheng Fan - MSFT
Mar 10, 2011 01:33 PM|RightCoder|LINK
I have just finished my automatic build on TFS 2010. Now I need to copy the WCF Web Service output from the subfolder _PublishedWebSites in the build drop folder over to my application folder in the IIS wwwroot-folder.
This is just a simple xCopy really but how do I insert that into the TFS build process? I have a modified BuildTemplate (XAML) where I have some custom activities. I guess the xcopy-thingy should be placed somewhere after the "copy to drop folder"-something?
And how do I use xcopy in a custom activity? InvokeProcess?
Any help would be great!
Mar 14, 2011 11:08 AM|XiaoCheng Fan - MSFT|LINK
As far as I know, yu can try to add a copy task in AfterBuild action:
<Copy SourceFiles="@(MySourceFiles)" DestinationFiles="@(MySourceFiles->'c:\MyDestinationTree\%(RecursiveDir)%(Filename)%(Extension)')" />
For more details:
I hope this can be helpful for you.