Install posh-git in visual studio package manager

I am trying to install posh-git in the Visual Studio Package Manager console (vs 2012) and I get the following error on startup. \ install.ps1 in the poshgit directory and reloading the profile:

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 

I can install posh-git from a regular command line prompt without any problems that seem to work only this year compared to 2012.

Any idea why I only get this error in vs and how to fix it?

+4
source share
1 answer

posh-git attempts to integrate with PowerTab , which provides the Register-TabExpansion . It seems that NuGet now provides its own function with the same name, but with a different signature. I just clicked the new posh git version with the fix.

+3
source

Source: https://habr.com/ru/post/1443901/


All Articles