【发布时间】:2019-11-01 01:58:07
【问题描述】:
在 Azure DevOps 上,我想配置 .NET Core CLI task,以便它在运行时 win-x86 时执行 restore。
我试过这个配置:
- task: DotNetCoreCLI@2
displayName: 'Restore NuGet'
inputs:
command: 'restore'
projects: './src/MySolution.sln'
feedsToUse: 'config'
nugetConfigPath: './NuGet.config'
arguments: '--runtime win-x86'
...我认为会将--runtime win-x86 添加到执行的命令中。但是,被执行的命令...
/usr/bin/dotnet restore /home/vsts/work/1/s/./src/MySolution.sln --configfile /home/vsts/work/1/Nuget/tempNuGet_158.config --verbosity Detailed
...缺少运行时选项。
在 Azure DevOps 上,是否可以执行 .NET Core CLI 任务,以便它执行 restore 和运行时 win-x86?
我首先尝试通过创建 this issue 来确定 .NET Core CLI 任务的文档是否有问题,但它在没有任何对话框的情况下关闭,实际上我被告知要在 SO 上发布我的问题。
【问题讨论】:
标签: .net-core azure-devops runtime azure-pipelines nuget-package-restore