使用Update-TfsWorkspace获取最新信息 [英] Get latest using Update-TfsWorkspace
问题描述
Add-PSSnapin Microsoft.TeamFoundation.PowerShell
Add-PSSnapin Microsoft.TeamFoundation.PowerShell
Update-TfsWorkspace $ path -All -Recurse -Force
Update-TfsWorkspace $path -All -Recurse -Force
我正在尝试使用PowerShell从TFS获取最新的项目,但脚本运行并且没有任何反应。它没有得到最新的。 没有错误信息或任何其他所以我不知道该怎么做。
I am trying to get the latest of project from TFS using PowerShell but the script runs and nothing happens. It doesn't get the latest. No error message or whatsoever so I am not sure what to do.
我只有一个工作区,因此没有其他工作区可供删除。
I only have one workspace so there is no other workspace to delete.
请告知。
谢谢!
推荐答案
嗨香榭丽舍大街,
Hi Champs League,
感谢您在此发帖。
如果你想获取所有集合下的所有团队项目,您可以使用以下powershell脚本:
If you want to get all the team projects under all the collections, you could use the following powershell script:
pathToAss2 =" C :\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \IDE \ TestAgent"
Add-Type -Path"
pathToAss2 = "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\TestAgent" Add-Type -Path "
pathToAss2\Microsoft.TeamFoundation.Client.dll"
pathToAss2\Microsoft.TeamFoundation.Client.dll"
这篇关于使用Update-TfsWorkspace获取最新信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!