.net core 如何使用参数执行Azure DevOps.NET Core CLI任务

.net core 如何使用参数执行Azure DevOps.NET Core CLI任务,.net-core,azure-devops,runtime,azure-pipelines,nuget-package-restore,.net Core,Azure Devops,Runtime,Azure Pipelines,Nuget Package Restore,在Azure DevOps上,我想配置,以便它使用运行时win-x86执行restore 我尝试了以下配置: - task: DotNetCoreCLI@2 displayName: 'Restore NuGet' inputs: command: 'restore' projects: './src/MySolution.sln' feedsToUse: 'config' nugetConfigPath: './NuGet.config' arg

在Azure DevOps上,我想配置,以便它使用运行时
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

我首先试图通过创建来确定.NET Core CLI任务的文档是否有问题,但它在没有任何对话框的情况下关闭了,我基本上被告知将我的问题发布在上面。

我不知道为什么,但是任务
DotNetCoreCLI
的版本2似乎无法在
restore
命令中使用其他参数

将版本切换到1-
DotNetCoreCLI@1
它将在以下情况下工作:


我确定在恢复时忽略参数是版本2的预期行为。我为链接的GitHub问题添加了更多信息。