如何为NuGet创建手动VSTS版本?
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何为NuGet创建手动VSTS版本?相关的知识,希望对你有一定的参考价值。
可能相关,但似乎过时了:VSTS Release Task - Push to Nuget
我在GitHub上有一个开源项目,它可以在VSTS上进行构建。
现在,我想有一个VSTS Release定义,它将我的包发布到NuGet。我想手动执行此操作。所以不要将它作为我的VSTS构建的一部分。
有人能指出我如何做到这一点的最佳资源吗?
日志的相关部分:
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
1aMaster CIdropRedditSentimentAnalyzer.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
1aMaster CIdropRedditSentimentAnalyzer.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
1a/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\_toolNuGet4.3.0x64
2018-03-26T03:05:31.8605921Z Prepending PATH environment variable with directory: D:a\_toolNuGet4.3.0x64
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:Windowssystem32chcp.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 task并选择push
命令:
以上是关于如何为NuGet创建手动VSTS版本?的主要内容,如果未能解决你的问题,请参考以下文章
如何为 XSLT 代码片段配置 CruiseControl 的 C# 版本?