1 Star 2 Fork 0

UnitySir/NAudio

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
publish.ps1 881 Bytes
Copy Edit Raw Blame History
# 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" }
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/unitysir_admin/NAudio.git
git@gitee.com:unitysir_admin/NAudio.git
unitysir_admin
NAudio
NAudio
master

Search