6 Star 84 Fork 30

dotNET China/HttpAgent

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nuget-push.ps1 613 Bytes
一键复制 编辑 原始数据 按行查看 历史
Param(
[string] $apikey
)
cd .\src\nupkgs;
$nupkgs = Get-ChildItem -Recurse -Filter "*.nupkg";
for ($i = 0; $i -le $nupkgs.Count - 1; $i++){
$item = $nupkgs[$i];
$nupkg = $item.FullName;
$snupkg = $nupkg.Replace(".nupkg", ".snupkg");
Write-Output "-----------------";
$nupkg;
dotnet nuget push $nupkg --skip-duplicate --api-key $apikey --source https://api.nuget.org/v3/index.json;
dotnet nuget push $snupkg --skip-duplicate --api-key $apikey --source https://api.nuget.org/v3/index.json;
Write-Output "-----------------";
}
cd ../../;
Write-Warning "Successfully.";
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/dotnetchina/HttpAgent.git
git@gitee.com:dotnetchina/HttpAgent.git
dotnetchina
HttpAgent
HttpAgent
master

搜索帮助