我正在尝试将posh-git安装到visual studio包管理器控制台(vs 2012)中,在运行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,没有任何问题,只是在VS2012中似乎遇到了这个问题。
你知道为什么我只能在vs中得到这个错误吗?如何修复它?
发布于 2013-01-16 11:07:18
posh-git尝试与提供Register-TabExpansion函数的PowerTab集成。似乎NuGet现在提供了自己的同名函数,但使用了不同的签名。我刚刚推出了一个新版本的posh git,并进行了修复。
https://stackoverflow.com/questions/13215766
复制相似问题