PowerShell 5.1 版本有什么限制? #179
chenxizhang
started this conversation in
Use cases - 简体中文
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
PowerShell 5.1 是 Windows 7 开始后系统默认自带的版本,可以通过
powershell
这样的指令快速启动,它是蓝色图标的版本。它是 PowerShell 5 这个大版本中的最后一个版本,后续的PowerShell 6 和 7 , 也就是我们常说的 PowerShell Core。他们的根本区别在于:PowerShell 5.1 是基于 .NET Framework 4.0这个版本开发的。
而PowerShell Core, 则是基于 .NET Core 开发的。
既然如此, 那么PowerShell 5.1 这个版本就只能在Windows上面运行,所以它的名字其实也叫 Windows PowerShell. 而 PowerShell Core 则可以跨平台运行,例如在MacOS, Linux上面运行也毫无压力,它的名字也叫 Microsoft PowerShell.
那么,到了我们这个具体的模块,在功能上是否有对 5.1 做什么限制么?
没有!在开发这个模块之初,我们的一个目标就是必须兼容 5.1, 这样做的好处就是 Windows用户默认就已经安装了它,无需额外安装步骤。为此,在代码中有很小心的兼容性处理,例如对UTF-8的支持,编写了不少额外的代码。
只有一个功能体验是有差异的,那就是因为 5.1无法支持流式传输(stream),所以在你用
chat
命令创建桌面版 ChatGPT时,无法看到打字机效果,不过这个完全不影响使用。Beta Was this translation helpful? Give feedback.
All reactions