【发布时间】:2012-11-04 03:21:06
【问题描述】:
我正在尝试将 posh-git 安装到 Visual Studio 包管理器控制台(与 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,没有任何问题,它似乎只在 vs 2012 中遇到。
知道为什么我在 vs only 中遇到此错误以及如何解决它吗?
【问题讨论】:
标签: powershell visual-studio-2012 posh-git