power shell 更新后的版本号

看别人博客,去github下了个powershell v7.0.2,https://github.com/PowerShell/PowerShell,没有敢下尝鲜版,也没有下长期维护版,下了个稳定版。

看下面的说明里面是和windows自带的版本是 并行存在的:

 Note

PowerShell 7 installs to a new directory and runs side-by-side with Windows PowerShell 5.1. For PowerShell Core 6.x, PowerShell 7 is an in-place upgrade that removes PowerShell Core 6.x.

然后赶紧打开看了一眼,结果真是并行存在的。凌乱了。而且官方原文还说 dot net的工具里面还能再装一份。不知道vscode里面是不是也能额外装一份。

 

Microsoft Windows [版本 10.0.14393]
(c) 2016 Microsoft Corporation。保留所有权利。

C:\Users\Nimda>powershell
Windows PowerShell
版权所有 (C) 2016 Microsoft Corporation。保留所有权利。

PS C:\Users\Nimda> get-host


Name             : ConsoleHost
Version          : 5.1.14393.3471
InstanceId       : ed4c3838-f558-44d9-aa56-db6652e841f2
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : zh-CN
CurrentUICulture : zh-CN
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled  : True
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace



PS C:\Users\Nimda> pwsh
PowerShell 7.0.2
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/powershell
Type 'help' to get help.

PS C:\Users\Nimda> get-host

Name             : ConsoleHost
Version          : 7.0.2
InstanceId       : 9360a12e-f9db-40d5-a4ab-d80fbbcbc682
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : zh-CN
CurrentUICulture : zh-CN
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled  : True
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace


PS C:\Users\Nimda>

 

posted @ 2020-06-13 12:07  william1994  阅读(320)  收藏2(0