linux - 如何为 nupkg 编写 pash 脚本?

标签 linux powershell nuget

  1. nuget如何调用pash?它如何知道要运行哪个 shell?它应该是当前用户的默认 shell 吗?如何重新定义这个?

  2. .nupkg(s) 中脚本的默认路径约定是什么?

  3. pash 中默认应存在哪些 cmdlet?

最佳答案

唯一可用于在 MonoDevelop 和 Xamarin Studio 中运行 PowerShell 脚本的支持需要 separate addin待安装。

这提供了一个 PowerShell 控制台,并允许运行包含在 NuGet 包中的 PowerShell 脚本。它在幕后使用 Pash。由于 Pash 功能不完整,因此存在一些限制,因此某些 PowerShell 脚本可能无法运行。

  1. 命令行上的 nuget 不调用 Pash。即使在 Windows 上,命令行上的 nuget 也不支持 PowerShell 脚本。
  2. NuGet 包中 PowerShell 脚本的约定与 Pash 相同。
  3. 您需要运行 pash 或查看源代码以查看提供了哪些 cmdlet。

关于linux - 如何为 nupkg 编写 pash 脚本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34796255/

相关文章:

visual-studio - 如何通过脚本使用Visual Studio自动格式?

.net - NuGet.exe 命令行更新到特定版本

linux - 使用 uuencode,如何在发送时重命名附加的文件?

c - 在#include 语句中将反斜杠替换为正斜杠

linux - dd:如何计算最佳 block 大小?

linux - 从 Redhat Linux 服务器完全卸载 openldap

powershell - 在Powershell中将MailKit DLL作为程序集加载

powershell - 当行为空/空白时,如何有效地删除多行字符串的最后一行?

c# - 使用 "ClosedXML"NuGet 保存 50k 行的 Excel 文件需要很长时间

nuget - 如何让 NuGet 安装/更新packages.config 中的所有包?