0
votes

How to deploy (copy the application files) to multiple locations when TFS build is executed.

See the picture when ever build is initiated I am copying to a location, I wanted to give multiple location in MSBuild Arguments.

enter image description here

MSBuild Arguments : /p:DeployPath=\\ServerName\C$\Inetpub\wwwroot\ApplicationName
1

1 Answers

0
votes

Add another CopyDirectory activity to your build process template XAML.

<mtbwa:CopyDirectory DisplayName="Drop Files to Drop Location" Source="[BinariesDirectory]" Destination="[DropLocation]" />

Or, use MSBuild Copy task in the last scipt being run in the build (AKA post-build script).