Fetch the repository succeeded.
# publishes to NuGet
# $apiKey needs to be already set up with NuGet publishing key
Write-Host $PSScriptRoot
if (-not $apiKey)
{
throw "Need to set the API key first"
}
$packages = "NAudio.Core", "NAudio.Asio", "NAudio.WinForms", "NAudio.Midi",
"NAudio.WinMM", "NAudio.Wasapi", "NAudio.Uap",
"NAudio", "NAudio.Extras"
foreach ($package in $packages)
{
# publish the most recently created .nupkg file
$folder = "$PSScriptRoot\$package\bin\Release"
$recent = gci "$folder\*.nupkg" | sort LastWriteTime | select -last 1
$pkg = $recent.Name
# note that this will fail with 409 error if you try to push package that already exists
Write-Host "publishing $pkg"
dotnet nuget push "$folder\$pkg" --api-key $apiKey --source https://api.nuget.org/v3/index.json | out-null
if (-not $?) { Write-Error "Failed to publish $pkg" }
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。