使用一个命令将多个包推送到私有 nuget (VSTS) [英] Push multiple packages to private nuget (VSTS) with one command
问题描述
我正在尝试一次将多个 nuget 包推送到私有 VSTS nuget 服务器.
I'm trying to push multiple nuget packages at ONCE to private VSTS nuget server.
我搜索了 doco,但找不到批量推送命令.我正在使用下面的命令,它似乎覆盖了 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
更新:
我使用了 push *.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屋!