Files
Discord.Net/build.ps1
RogueException 78c892b1bb Pack script fixes
2017-01-25 16:56:23 -04:00

10 lines
405 B
PowerShell

if (Test-Path Env:\APPVEYOR_BUILD_NUMBER) {
$build = $env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")
} else {
$build = "dev"
}
appveyor-retry dotnet restore Discord.Net.sln -v Minimal -p:BuildNumber="$build"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
dotnet build Discord.Net.sln -c "Release" -p:BuildNumber="$build"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }