【发布时间】:2019-12-24 02:43:29
【问题描述】:
在编写 Azure Pipelines yaml 脚本时,是否可以运行 DotNetCoreCLI 任务的预发布版本?如果可能的话,我想使用 3.0.1xx 来利用 dotnet tool update installing the tool rather than throwing an error if not installed。
如果可能的话,使用预发布版本而不是版本 2 进行这样的调用的语法是什么:
- task: DotNetCoreCLI@2
continueOnError: true
inputs:
command: custom
custom: tool
arguments: install -g coverlet.console
displayName: Install Coverlet tool. This task will continue on error if coverlet is already installed.
【问题讨论】:
-
这能回答你的问题吗? Build .NET Core 3.0 on Azure Pipelines
-
我认为 cli 任务与 sdk 版本分开运行,但查看该答案和此处给出的答案是链接的。
标签: azure-devops yaml version azure-pipelines dotnetcorecli