powershell - 如何显示 Visual Studio Online 构建任务 Write-Verbose 语句?

标签 powershell build azure-devops

许多 Visual Studio Online (VSO) build tasks使用 Write-Verbose用于调试目的,如 this example 中所示,但是如何打开 Write-Verbose 以便调试语句出现在输出日志中?

最佳答案

要在日志中显示详细和调试语句,您只需将 System.Debug 变量添加到定义中的变量即可。

关于powershell - 如何显示 Visual Studio Online 构建任务 Write-Verbose 语句?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31092532/

相关文章:

javascript - 需要在 Azure Devops 中使用 build.yaml 构建 javascript 应用程序

visual-studio - Azure DevOps 构建失败警告 MSB3245 : Could not resolve this reference

git - 将项目从 GitHub 迁移到 Visual Studio Online

powershell - 按值对嵌套哈希表排序

PowerShell CSV 操作

C++ 编译错误 : Undefined symbols for architecture x86_64

build - Flutter 小部件的大小取决于另一个

variables - $是什么? Powershell 中的别名?

powershell - 使用PowerShell从文本文件中提取列

azure - Visual Studio Online - 开发运营