Dan*_*ell 5 powershell posh-git visual-studio-2012
我正在尝试将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
Run Code Online (Sandbox Code Playgroud)
我可以在正常的PowerShell提示符下安装posh-git,没有任何问题,它似乎只是在vs 2012中遇到了这个问题.
知道为什么我只在vs中得到这个错误以及如何修复它?
posh-git 尝试与PowerTab集成,后者提供了一个Register-TabExpansion功能。看来 NuGet 现在提供了自己的同名函数,但具有不同的签名。我刚刚推出了带有修复程序的 posh-git 新版本。
| 归档时间: |
|
| 查看次数: |
874 次 |
| 最近记录: |