1

我的项目集合中有一个名为“OutputBinaries”的文件夹。我有本地工作区映射到多台机器上的这个文件夹。每当对“OutputBinaries”文件夹进行任何修改时,我都想自动更新所有这些本地工作区。

我知道如果 tf get 命令特定于特定机器或特定工作区,它会有所帮助。但是如何通过不同机器上的工作区来实现这一点

我们使用的是最新的 TFS 版本

4

1 回答 1

0

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

于 2017-11-15T09:44:11.153 回答