使用一个命令将多个软件包推送到私有nuget(VSTS) [英] Push multiple packages to private nuget (VSTS) with one command

查看:161
本文介绍了使用一个命令将多个软件包推送到私有nuget(VSTS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图将ONCE上的多个nuget包推送到私有VSTS nuget服务器。

I'm trying to push multiple nuget packages at ONCE to private VSTS nuget server.

我搜索了doco,但是找不到批处理Push命令。我正在使用下面的命令,该命令似乎会覆盖VSTS上已经存在的nuget软件包。

I searched doco but could not find a batch Push command. I'm using the command below which seems to overwrite already existing nuget packages on VSTS.

nuget push mynuget.nupkg -Source https://myvsts.pkgs.visualstudio.com/DefaultCollection/_packaging/SitecorePackages/nuget/v3/index.json -ApiKey VSTS

更新:

我使用了* .nupkg推送,但是我只能看到推送的8.1.x版本。

I used the push *.nupkg however, I can see only the 8.1.x version pushed.

谢谢。

推荐答案

无法覆盖VSTS上的现有软件包。 nuget.exe允许使用通配符进行推送,因此您可以说 nuget push * .nupkg -Source https://myvsts.pkgs.visualstudio.com/DefaultCollection/_packaging/SitecorePackages/nuget/v3/index.json -ApiKey VSTS

It's not possible to overwrite existing packages on VSTS. nuget.exe allows wildcards for push, so you could say nuget push *.nupkg -Source https://myvsts.pkgs.visualstudio.com/DefaultCollection/_packaging/SitecorePackages/nuget/v3/index.json -ApiKey VSTS.

这篇关于使用一个命令将多个软件包推送到私有nuget(VSTS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆