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?
RightCoder
Member
23 Points
47 Posts
How to copy Web Application output from TFS-build to IIS Web Site?
Mar 10, 2011 12:33 PM|LINK
Hi
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!
XiaoCheng Fa...
All-Star
17743 Points
1414 Posts
Re: How to copy Web Application output from TFS-build to IIS Web Site?
Mar 14, 2011 10:08 AM|LINK
HI,
As far as I know, yu can try to add a copy task in AfterBuild action:
<Target Name="CopyFiles"> <Copy SourceFiles="@(MySourceFiles)" DestinationFiles="@(MySourceFiles->'c:\MyDestinationTree\%(RecursiveDir)%(Filename)%(Extension)')" /> </Target>For more details:
http://msdn.microsoft.com/en-us/library/3e54c37h.aspx
I hope this can be helpful for you.
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework