You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.ps1 405 B

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