diff --git a/build.ps1 b/build.ps1 index 33f1d02b4..111dabbe6 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,5 +5,6 @@ if (Test-Path Env:\APPVEYOR_BUILD_NUMBER) { } dotnet restore Discord.Net.sln -if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } -dotnet build Discord.Net.sln -c "Release" -p:BuildNumber="$build" \ No newline at end of file +if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } +dotnet build Discord.Net.sln -c "Release" -p:BuildNumber="$build" +if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } \ No newline at end of file diff --git a/pack.ps1 b/pack.ps1 index 06c9347f5..d9d55c8a7 100644 --- a/pack.ps1 +++ b/pack.ps1 @@ -5,17 +5,18 @@ if (Test-Path Env:\APPVEYOR_BUILD_NUMBER) { } dotnet pack "src\Discord.Net\Discord.Net.csproj" -c "Release" -o "../../nupkgs" --no-build -p:BuildNumber="$build" -if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } +if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } dotnet pack "src\Discord.Net.Core\Discord.Net.Core.csproj" -c "Release" -o "../../nupkgs" --no-build -p:BuildNumber="$build" -if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } +if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } dotnet pack "src\Discord.Net.Commands\Discord.Net.Commands.csproj" -c "Release" -o "../../nupkgs" --no-build -p:BuildNumber="$build" -if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } +if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } dotnet pack "src\Discord.Net.Rest\Discord.Net.Rest.csproj" -c "Release" -o "../../nupkgs" --no-build -p:BuildNumber="$build" -if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } +if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } dotnet pack "src\Discord.Net.WebSocket\Discord.Net.WebSocket.csproj" -c "Release" -o "../../nupkgs" --no-build -p:BuildNumber="$build" -if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } +if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } dotnet pack "src\Discord.Net.Rpc\Discord.Net.Rpc.csproj" -c "Release" -o "../../nupkgs" --no-build -p:BuildNumber="$build" -if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } +if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } dotnet pack "src\Discord.Net.Providers.WS4Net\Discord.Net.Providers.WS4Net.csproj" -c "Release" -o "../../nupkgs" --no-build -p:BuildNumber="$build" -if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } -dotnet pack "src\Discord.Net.Providers.UdpClient\Discord.Net.Providers.UdpClient.csproj" -c "Release" -o "../../nupkgs" --no-build -p:BuildNumber="$build" \ No newline at end of file +if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } +dotnet pack "src\Discord.Net.Providers.UdpClient\Discord.Net.Providers.UdpClient.csproj" -c "Release" -o "../../nupkgs" --no-build -p:BuildNumber="$build" +if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } \ No newline at end of file diff --git a/test.ps1 b/test.ps1 index f82ff8672..070bcba52 100644 --- a/test.ps1 +++ b/test.ps1 @@ -1 +1,4 @@ -dotnet test test/Discord.Net.Tests/Discord.Net.Tests.csproj \ No newline at end of file +dotnet restore test/Discord.Net.Tests/Discord.Net.Tests.csproj +if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } +dotnet test test/Discord.Net.Tests/Discord.Net.Tests.csproj +if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } \ No newline at end of file