如何为NuGet创建手动VSTS版本?

问题描述 投票:0回答:1

可能相关,但似乎过时了:VSTS Release Task - Push to Nuget

我在GitHub上有一个开源项目,它可以在VSTS上进行构建。

现在,我想有一个VSTS Release定义,它将我的包发布到NuGet。我想手动执行此操作。所以不要将它作为我的VSTS构建的一部分。

有人能指出我如何做到这一点的最佳资源吗?

这是我的发布定义:enter image description here

日志的相关部分:

2018-03-26T03:05:29.4416011Z Downloading artifacts from: https://rpm1984.visualstudio.com//_apis/resources/Containers/1753137?itemPath=drop&isShallow=true&api-version=4.1-preview.4
2018-03-26T03:05:29.6204337Z Downloading drop/RedditSentimentAnalyzer.1.0.0-CI-20180322-025919.nupkg to D:\a\r1\a\Master CI\drop\RedditSentimentAnalyzer.1.0.0-CI-20180322-025919.nupkg
2018-03-26T03:05:29.6248792Z Downloaded drop/RedditSentimentAnalyzer.1.0.0-CI-20180322-025919.nupkg to D:\a\r1\a\Master CI\drop\RedditSentimentAnalyzer.1.0.0-CI-20180322-025919.nupkg
2018-03-26T03:05:30.4524266Z Total Files: 1, Processed: 1, Skipped: 0, Failed: 0, Download time: 1.007 secs, Download size: 10227Bytes
2018-03-26T03:05:30.5070857Z Successfully downloaded artifacts to D:\a\r1\a/Master CI
2018-03-26T03:05:30.5101258Z ##[section]Finishing: Download artifact - Master CI

 ...

2018-03-26T03:05:30.5119489Z ##[section]Starting: Use NuGet 4.3.0
2018-03-26T03:05:30.5122745Z ==============================================================================
2018-03-26T03:05:30.5122980Z Task         : NuGet Tool Installer
2018-03-26T03:05:30.5123255Z Description  : Acquires a specific version of NuGet from the internet or the tools cache and adds it to the PATH. Use this step to change the version of NuGet used in the NuGet steps.
2018-03-26T03:05:30.5123505Z Version      : 0.1.5
2018-03-26T03:05:30.5123696Z Author       : Microsoft Corporation
2018-03-26T03:05:30.5123904Z Help         : [More Information](https://go.microsoft.com/fwlink/?linkid=852538)
2018-03-26T03:05:30.5124656Z ==============================================================================
2018-03-26T03:05:31.7510971Z Downloading: https://dist.nuget.org/win-x86-commandline/v4.3.0/nuget.exe
2018-03-26T03:05:31.8479515Z Caching tool: NuGet 4.3.0 x64
2018-03-26T03:05:31.8600552Z Using version: 4.3.0
2018-03-26T03:05:31.8602827Z Found tool in cache: NuGet 4.3.0 x64
2018-03-26T03:05:31.8603258Z Using tool path: D:\a\_tool\NuGet\4.3.0\x64
2018-03-26T03:05:31.8605921Z Prepending PATH environment variable with directory: D:\a\_tool\NuGet\4.3.0\x64
2018-03-26T03:05:31.8723553Z ##[section]Finishing: Use NuGet 4.3.0

...

123456789101112
2018-03-26T03:05:31.8764514Z ##[section]Starting: Push artifact to NuGet2018-03-26T03:05:31.8770703Z ==============================================================================2018-03-26T03:05:31.8770932Z Task         : NuGet2018-03-26T03:05:31.8771244Z 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.2018-03-26T03:05:31.8771593Z Version      : 2.0.242018-03-26T03:05:31.8771774Z Author       : Microsoft Corporation2018-03-26T03:05:31.8772001Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613747)2018-03-26T03:05:31.8772231Z ==============================================================================2018-03-26T03:05:33.2855694Z [command]C:\Windows\system32\chcp.com 650012018-03-26T03:05:33.3914203Z Active code page: 650012018-03-26T03:05:33.4169477Z ##[section]Finishing: Push artifact to NuGet 

2018-03-26T03:05:31.8764514Z ##[section]Starting: Push artifact to NuGet
2018-03-26T03:05:31.8770703Z ==============================================================================
2018-03-26T03:05:31.8770932Z Task         : NuGet
2018-03-26T03:05:31.8771244Z 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 a

Find
No Results

```

nuget azure-devops azure-pipelines-release-pipeline
1个回答
0
投票

你可以使用Nuget task并选择push命令:

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.