PowerShellHelperExecutablePath 属性

PowerShell 可执行文件路径。默认固定为 Windows PowerShell 5.1("powershell.exe")。

Definition

命名空间: Suresking.Utility
程序集: Suresking.Utility (在 Suresking.Utility.dll 中) 版本:1.3.22+a27276bb8ffde055e69ff608e98aafba279e1e99
C#
public static string ExecutablePath { get; set; }

属性值

String

备注

如需使用 PowerShell 7+(pwsh.exe),可将此属性设置为 "pwsh.exe" 的完整路径。 注意:本类的参数构造与编码处理均按 5.1 的行为设计,切换版本后需自行验证兼容性。

参见