prepare_build_linux_rc 596 B

12345678910111213
  1. #!/bin/bash
  2. # Source this rc script to prepare the environment for Linux builds
  3. # Set up dotnet
  4. sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
  5. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB3E94ADBE1229CF
  6. sudo apt-get update
  7. # We use the .NET Core SDK 2.x to build...
  8. sudo apt-get install -y dotnet-sdk-2.0.3
  9. # But we also need the 1.x framework to test against, as we
  10. # target netstandard1.x
  11. sudo apt-get install -y dotnet-sharedframework-microsoft.netcore.app-1.0.5