小编Tdl*_*ias的帖子

如何解决错误[术语“pwsh.exe”未被识别为cmdlet、函数、脚本文件或可运行程序的名称]?

在 Azure DevOps 上创建新管道以设置 .NET 项目的 CI 时,我设置了以下 PowerShell 脚本来自动化 .NET Core 设置。

这是脚本:

$ErrorActionPreference="Stop"
$ProgressPreference="SilentlyContinue"

# $LocalDotnet is the path to the locally-installed SDK to ensure the
#   correct version of the tools are executed.
$LocalDotnet=""
# $InstallDir and $CliVersion variables can come from options to the
#   script.
$InstallDir = "./cli-tools"
$CliVersion = "1.0.1"

# Test the path provided by $InstallDir to confirm it exists. If it
#   does, it's removed. This is not strictly required, but it's …
Run Code Online (Sandbox Code Playgroud)

powershell .net-core powershell-v6.0

4
推荐指数
1
解决办法
6130
查看次数

标签 统计

.net-core ×1

powershell ×1

powershell-v6.0 ×1