Versions are hard

This commit is contained in:
RogueException
2017-01-25 18:00:00 -04:00
parent 7e9491fb34
commit b0db37cad6
12 changed files with 24 additions and 45 deletions

View File

@@ -1,10 +1,4 @@
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"
appveyor-retry dotnet restore Discord.Net.sln -v Minimal -p:VersionSuffix="$env:BUILD"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
dotnet build Discord.Net.sln -c "Release" -p:BuildNumber="$build"
dotnet build Discord.Net.sln -c "Release" -p:VersionSuffix="$env:BUILD"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }