msbuild - Is there any task to copy files from TFS to a folder? -


scenario: need part of deploy scripts have task copy files source origin.

now have change source. instead of being normal folder has location in tfs.

is there task it? can't find any.

i trying files manually tfs using similar to:

<propertygroup>   <tf>"c:\program files\microsoft visual studio 9.0\common7\ide\tf.exe"</tf>   <tfsourcelocation>$/tfsdir</tfsourcelocation>   <solutionroot>.</solutionroot>   <remotewebroot>$(destinationroot)\dir</remotewebroot>   <copy>xcopy /e /i /r /y</copy> </propertygroup>  <exec command="$(tf) $(tfsourcelocation) /force /recursive /version:t /noprompt" continueonerror="true" /> 

i don't have compile anything. need copy files stored in tfs folder.

question: best approach? or exists task allows me copy tfs folder?

i don't understand question completely, if want download files tfs folder on build server, command using best option.

only aware need workspace configured tfs knows download files to.

another option use tf view command:

tf view $/myitem /console /collection:http://mytfsserver:8080/tfs/defaultcollection >c:\localfile 

this show contents of item console , prints c:\localfile. around workspace issue.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -