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.

pack.ps1 1.6 kB

1234567891011121314151617
  1. dotnet pack "src\Discord.Net.Core\Discord.Net.Core.csproj" -c "Release" -o "../../artifacts" --no-build /p:BuildNumber="$Env:BUILD"
  2. if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
  3. dotnet pack "src\Discord.Net.Rest\Discord.Net.Rest.csproj" -c "Release" -o "../../artifacts" --no-build /p:BuildNumber="$Env:BUILD"
  4. if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
  5. dotnet pack "src\Discord.Net.WebSocket\Discord.Net.WebSocket.csproj" -c "Release" -o "../../artifacts" --no-build /p:BuildNumber="$Env:BUILD"
  6. if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
  7. dotnet pack "src\Discord.Net.Rpc\Discord.Net.Rpc.csproj" -c "Release" -o "../../artifacts" --no-build /p:BuildNumber="$Env:BUILD"
  8. if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
  9. dotnet pack "src\Discord.Net.Commands\Discord.Net.Commands.csproj" -c "Release" -o "../../artifacts" --no-build /p:BuildNumber="$Env:BUILD"
  10. if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
  11. dotnet pack "src\Discord.Net.Providers.WS4Net\Discord.Net.Providers.WS4Net.csproj" -c "Release" -o "../../artifacts" --no-build /p:BuildNumber="$Env:BUILD"
  12. if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
  13. dotnet pack "src\Discord.Net.Providers.UdpClient\Discord.Net.Providers.UdpClient.csproj" -c "Release" -o "../../artifacts" --no-build /p:BuildNumber="$Env:BUILD"
  14. if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
  15. nuget pack src\Discord.Net\Discord.Net.nuspec -OutputDirectory "artifacts" -properties build="$Env:BUILD"
  16. if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }