Azure DevOps中的名称和显示名称之间有什么区别

时间:2020-02-28 13:56:09

标签: azure-devops azure-pipelines

我在azure devops中发现了任务的以下定义:

- task: DotNetCoreCLI@2
  name: 'CleanProjectsBeforeBuild'
  displayName: Clean Projects Before Build
  inputs:
    command: 'custom'
    projects: $(System.DefaultWorkingDirectory)
    custom: 'clean'
    arguments: '--configuration  $(BuildConfiguration)'

我的问题是'name'属性和'displayName'属性有什么区别?

1 个答案:

答案 0 :(得分:2)

您可以在Task这里找到说明:

步骤:

-task:字符串#对任务和版本的引用,例如“ VSBuild @ 1”

displayName:字符串#在用户界面中显示的友好名称

name:字符串#此步骤的标识符(A-Z,a-z,0-9和下划线)

相关问题