您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

13 行
406 B

  1. param([string]$apiKey)
  2. Invoke-WebRequest -Uri "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile "nuget.exe"
  3. $files = Get-ChildItem -Path ".\NuGet" -Filter "*.nupkg"
  4. foreach ($file in $files)
  5. {
  6. Write-Host "Uploading: " $file
  7. .\nuget.exe push $file.Fullname $apiKey -Source https://api.nuget.org/v3/index.json
  8. }
  9. Remove-Item "nuget.exe" -Force -Recurse -ErrorAction SilentlyContinue