使用对项目集合中文件夹的更改来更新所有本地工作区

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

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

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

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

首先,正如大牛所说:

"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."

对于您的具体问题,我们只能在特定机器上的特定工作区中 运行 tf get 命令。

要更新所有本地工作区,您可以尝试使用 tf get 命令创建批处理脚本。然后 运行 它定期在每台机器上。您可以使用 Windows Task Scheduler 进行设置,请参阅 How to schedule a Batch File to 运行 automatically in Windows 了解详情。

还有这个帖子供您参考:Run a task every x-minutes with Windows Task Scheduler