在运行时的powershell中
Get-TfsItemHistory . -Recurse -Version C13855~C14103
我收到错误 Unable to determine the source control server.
如果我运行tfpt.exe,我可以这样做tf workspaces /s:serverUrl
.
我怎样才能解决这个错误?
这两个命令有什么区别?
tfpt scorch /deletes /recursive /noprompt
tfpt treeclean /recursive /noprompt
Run Code Online (Sandbox Code Playgroud) 我知道如何查询工作项,虽然我还没有非常成功地找到关于WIQL的信息.有一个基本的例子似乎在各处重复.
我希望能够查询更改集.我可以使用tf.exe,tfpt.exe或..吗?
我在Windows 2008 R2开发人员计算机上安装了TFS Power Tools 2008及其PowerShell集成功能.
当我尝试运行以下命令来启用管理单元时:
Add-PSSnapin Microsoft.TeamFoundation.PowerShell
Run Code Online (Sandbox Code Playgroud)
在32位版本的PowerShell.exe中,在C:\ Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe下,它可以正常工作.但是当我尝试在64位版本中执行相同操作时:C:\ Windows\system32\WindowsPowerShell\v1.0\powershell.exe我收到以下错误:
Add-PSSnapin : The Windows PowerShell snap-in 'Microsoft.TeamFoundation.PowerShell' is not installed on this machine.
At line:1 char:13
+ Add-PSSnapin <<<< Microsoft.TeamFoundation.PowerShell
+ CategoryInfo : InvalidArgument: (Microsoft.TeamFoundation.PowerShell:String) [Add-PSSnapin], PSArgument
Exception
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
Run Code Online (Sandbox Code Playgroud)
知道如何让它在64位版本中运行吗?提前致谢.
我在 Windows 10 上使用 Visual Studio community 2017,我安装了 TFS power tools 2011、2013、2015(我读到以前的 Power Tools 已集成到 TFS 2017)但任何安装目录中都没有 tfpt.exe。