You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

PowerShell(dotnet global)是什么?无它能否安装PowerShell模块?

关于PowerShell(dotnet global)的疑问解答

1. PowerShell(dotnet global)到底是什么?

它是以.NET全局工具形式发布的PowerShell 7及以上版本,属于PowerShell的独立安装实例——和Windows系统默认自带的Windows PowerShell 5.1是并行存在的不同版本,既不是PowerShell的模块,也不是什么辅助工具,就是一套完整的PowerShell运行环境。

用dotnet tool install --global PowerShell命令安装时,它会被注册为.NET全局工具,所以Windows Terminal里会显示这个特殊名称。

2. 没有它就不能安装PowerShell模块吗?

当然不是。

  • Windows自带的Windows PowerShell 5.1本身就支持用Install-Module命令安装兼容的模块;
  • 你也可以通过官网安装包、微软商店等其他方式安装PowerShell 7+版本,安装完成后同样能正常安装和使用各种模块。
    这个.NET全局工具形式的PowerShell只是PowerShell众多安装方式中的一种,完全不是安装模块的必要前提。

内容的提问来源于stack exchange,提问作者Master

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.19 08:45:49