我已经在我的 Windows 2008 R2 开发人员机器上安装了 TFS Power Tools 2008 及其 PowerShell 集成功能。
当我尝试运行以下命令来启用管理单元时:
Add-PSSnapin Microsoft.TeamFoundation.PowerShell
在 PowerShell.exe 的 32 位版本中,在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
知道如何使它在 64 位版本中工作吗?提前致谢。