VSTS发布任务-推送到Nuget

VSTS发布任务-推送到Nuget,nuget,azure-devops,Nuget,Azure Devops,我正在尝试为我的核心项目设置CI,并将其包装到我们的vsts nugetfeed。 我已经学习了包管理的禅宗教程。 这有点过时了,但我相信我成功地翻译了这些变化 我的构建似乎工作正常,它将dll的构建并打包成几个nuget包 该版本似乎也能正常工作,但没有使用最新的软件包更新Nuget提要 我的发布任务只是一个任务,如下图所示。 日志显示它找到并下载了这些包,但没有显示实际推送到nuget的任何成功 这是显示正在找到的包以及成功完成的日志 2017-11-15T02:40:59.5675003Z

我正在尝试为我的核心项目设置CI,并将其包装到我们的
vsts nuget
feed。 我已经学习了包管理的禅宗教程。
这有点过时了,但我相信我成功地翻译了这些变化

我的构建似乎工作正常,它将
dll的
构建并打包成几个
nuget

该版本似乎也能正常工作,但没有使用最新的软件包更新Nuget提要

我的发布任务只是一个任务,如下图所示。 日志显示它找到并下载了这些包,但没有显示实际推送到
nuget
的任何成功

这是显示正在找到的包以及成功完成的日志

2017-11-15T02:40:59.5675003Z ##[section]Finishing: Initialize Job
2017-11-15T02:40:59.6125167Z ##[section]Starting: Download Artifacts
2017-11-15T02:41:00.2861639Z Downloading artifact
2017-11-15T02:41:00.2961643Z Creating artifacts directory: d:\a\r1\a
...etc

2017-11-15T02:41:00.8313684Z Downloading file d:\a\r1\a\Satalyst-Visual Studio-CI\drop\release\Packaged\Satalyst.AzureWrapper.Domain.2.0.0.3.nupkg
2017-11-15T02:41:00.9943663Z Downloading file d:\a\r1\a\Satalyst-Visual Studio-CI\drop\release\Packaged\Satalyst.PaymentGateway.Interfaces.2.0.0.3.nupkg
2017-11-15T02:41:00.9998063Z Downloading file d:\a\r1\a\Satalyst-Visual Studio-CI\drop\release\Packaged\Satalyst.PaymentGateway.Test.2.0.0.3.nupkg
...etc

2017-11-15T02:41:01.0750176Z Download complete.
2017-11-15T02:41:01.0761342Z 16 placed file(s): 16 downloaded, 0 empty
2017-11-15T02:41:01.0830178Z 1 MB downloaded at 1491 KB/sec. Download time: 00:00:00.2761869.
2017-11-15T02:41:01.0830178Z Downloaded linked artifact Satalyst-Visual Studio-CI
2017-11-15T02:41:01.0830178Z Finished artifacts download
2017-11-15T02:41:01.0890187Z ##[section]Finishing: Download Artifacts
。。。下面这一点成功了,但是提要没有显示新的包

2017-11-15T02:41:01.0920188Z ##[section]Starting: NuGet Publish
2017-11-15T02:41:01.1190170Z ==============================================================================
2017-11-15T02:41:01.1190170Z Task         : NuGet
2017-11-15T02:41:01.1190170Z Description  : Restore, pack, or push NuGet packages, or run a NuGet command. Supports NuGet.org and authenticated feeds like Package Management and MyGet. Uses NuGet.exe and works with .NET Framework apps. For .NET Core and .NET Standard apps, use the .NET Core task.
2017-11-15T02:41:01.1190170Z Version      : 2.0.15
2017-11-15T02:41:01.1190170Z Author       : Microsoft Corporation
2017-11-15T02:41:01.1190170Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613747)
2017-11-15T02:41:01.1190170Z ==============================================================================
2017-11-15T02:41:04.1372760Z Caching tool: NuGet 4.1.0 x64
2017-11-15T02:41:04.1502760Z Found tool in cache: NuGet 4.1.0 x64
2017-11-15T02:41:04.1612765Z Resolved from tool cache: 4.1.0
2017-11-15T02:41:04.1612765Z Using version: 4.1.0
2017-11-15T02:41:04.1612765Z Found tool in cache: NuGet 4.1.0 x64
2017-11-15T02:41:05.1667858Z [command]C:\Windows\system32\chcp.com 65001
2017-11-15T02:41:05.1667858Z Active code page: 65001
2017-11-15T02:41:05.1877908Z ##[section]Finishing: NuGet Publish
2017-11-15T02:41:05.1937859Z ##[section]Finishing: Release
任何帮助都将不胜感激,我已经做了一些尝试和错误,以找到问题,但没有成功。我现在有点困在没有错误信息和推送结果的反馈上


这是由于在发布定义中为NuGet Push任务配置了发布NuGet包的路径

请更改要发布为的NuGet程序包的路径:

$(System.DefaultWorkingDirectory)/**/packed/*.nupkg


然后nuget包应该正确发布到您的提要。

将system.debug变量添加到发布定义并设置为true,然后启动发布并将日志发布到此处。回答非常好。此外,我建议使用此选项排除发布软件包的符号版本:
$(System.DefaultWorkingDirectory)/***.nupkg$(System.DefaultWorkingDirectory)/***.symbols.nupkg