0

是否可以设置适用于使用 dotnet push 推送 nuget 包的托管 Linux 预览代理的发布管理任务?

我有一个构建过程,可以创建 nuget 包并将其作为工件发布。到目前为止,我已经得到了这个,当我使用 Hosted VS2017 Agent 时它可以工作。

发布任务

我得到的错误是:

2017-11-16T09:08:37.3084270Z ##[section]Starting: dotnet push
2017-11-16T09:08:37.3413530Z ==============================================================================
2017-11-16T09:08:37.3426100Z Task         : .NET Core
2017-11-16T09:08:37.3439540Z Description  : Build, test, package, or publish a dotnet application, or run a custom dotnet command. For package commands, supports NuGet.org and authenticated feeds like Package Management and MyGet.
2017-11-16T09:08:37.3451740Z Version      : 2.1.8
2017-11-16T09:08:37.3464910Z Author       : Microsoft Corporation
2017-11-16T09:08:37.3477740Z Help         : [More Information](https://go.microsoft.com/fwlink/?linkid=832194)
2017-11-16T09:08:37.3491430Z ==============================================================================
2017-11-16T09:08:40.3181020Z ##[error]No packages matched the search pattern.
2017-11-16T09:08:40.3305430Z ##[section]Finishing: dotnet push

我想知道代理之间在模式匹配文件名的方式上是否存在差异。

4

1 回答 1

1

所以事实证明,反斜杠和正斜杠非常重要。

我更改了要发布的 NuGet 包的路径以使用正斜杠$(System.DefaultWorkingDirectory)/**/*.nupkg

你知道吗,它有效:D

于 2017-11-16T10:08:31.483 回答