Warn of PowerShell 2.0 deprecation#186
Conversation
posh-git.psm1
Outdated
There was a problem hiding this comment.
Let's use $($PSVersionTable.PSVersion) instead of $($Host.Version), since the latter will only match for the standard host (not in the NuGet console, for example).
|
So sorry for the delay in looking at this. Looks great other than my comment on |
Allow Powershell 2 support deprecation warning to be suppressed by importing the module with a true value as an argument. The ability to pass arguments through Import-Module is pretty limited, accepting only positional arguments, but it still seems a preferable option to environment variables or asking users to modify posh-git directly. Closes dahlbyk#163
|
Version check fixed, conflict fixed. |
Warn of PowerShell 2.0 deprecation
|
Perfect, thanks! |
|
Solve the problem of warning, can modified first line of the posh-git.psm1: |
Rather than modify the module, I would suggest updating Import-Module .\posh-git -ArgumentList $true |

Closes #163