2017-06-01 18:46:43 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Source this rc script to prepare the environment for Linux builds
|
|
|
|
|
|
|
|
# Set up dotnet
|
2018-01-22 07:53:48 +00:00
|
|
|
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'
|
|
|
|
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB3E94ADBE1229CF
|
2017-06-01 18:46:43 +00:00
|
|
|
sudo apt-get update
|
2018-01-22 07:53:48 +00:00
|
|
|
# We use the .NET Core SDK 2.x to build...
|
2018-07-18 18:04:59 +00:00
|
|
|
sudo apt-get install -y dotnet-sdk-2.1.3
|
2018-01-22 07:53:48 +00:00
|
|
|
# But we also need the 1.x framework to test against, as we
|
|
|
|
# target netstandard1.x
|
|
|
|
sudo apt-get install -y dotnet-sharedframework-microsoft.netcore.app-1.0.5
|