Naresh
Naresh

Reputation: 35

Update all local workspaces with changes to a folder in my project collection

I have a folder with name "OutputBinaries" inside my project collection. I have local workspaces mapped to this folder on multiple machines. I want to automatically update all these local workspaces whenever there are any modification to "OutputBinaries" folder.

I know tf get command can help if it is specific to a particular machine or a particular workspace. But how this can be accomplished with workspaces on different machines

We are on the latest TFS version

Upvotes: 1

Views: 461

Answers (1)

Andy Li-MSFT
Andy Li-MSFT

Reputation: 30442

Firstly, as Daniel mentioned above:

"Binary outputs should not be stored in source control. If they are dependencies for applications, you should either manage them as NuGet packages or include them as project references."

For you specific question, we can only run the tf get command in particular workspace on the specific machine.

To update all local workspaces you can try to create a batch script with tf get command. Then run it periodically on each machine. You can set that with Windows Task Scheduler, see How to schedule a Batch File to run automatically in Windows for details.

Also this thread for your reference : Run a task every x-minutes with Windows Task Scheduler

Upvotes: 0

Related Questions