我正在尝试在Visual Studio包管理器控制台(vs 2012)中安装posh-git,并且当在poshgit目录中运行.\install.ps1并重新加载配置文件时,出现以下错误:
Register-TabExpansion : A parameter cannot be found that matches parameter name 'Type'.
At D:\posh-git\GitTabExpansion.ps1:218 char:37
+ Register-TabExpansion "git.exe" -Type Command {
+ ~~~~~
+ CategoryInfo : InvalidArgument: (:) [Register-TabExpansion], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Register-TabExpansion
我可以在普通的PowerShell提示符下安装posh-git,没有任何问题,只有在vs 2012中才会遇到这个问题。
你知道为什么只有在vs中会出现这个错误,以及如何解决它吗?