Building and packaging the agent, MUST be done with a specific version of the toolchain and .NET Core. They are changing rapidly and our build process assumes this version. We are looking into the env pulling that version.
To build, we rely on .NET Core SDK version 1.0.0-preview2-002875
Additional instructions are available here Please use the links below to download the correct version of Windows/OSX SDK files.
Download the archive, extract and add the new folder to the PATH dotnet-dev-win-x64.1.0.0-preview2-002875.zip
TIP: Uninstall any existing version first (Programs and Features -> Microsoft Dotnet CLI for Windows).
Download the archive, extract and add the new folder to the PATH dotnet-dev-osx-x64.1.0.0-preview2-002875.tar.gz
TIP: Uninstall any existing version first by deleting the folder that contains "dotnet" command.
The script below downloads and extracts .Net Core in a folder ~/dotnet. Please add this folder to your PATH.
mkdir ~/dotnet
cd ~/dotnet
wget https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/1.0.0-preview2-002875/dotnet-dev-ubuntu-x64.1.0.0-preview2-002875.tar.gz
tar zxfv dotnet-dev-ubuntu-x64.1.0.0-preview2-002875.tar.gz
TIP: Uninstall any existing version first by listing existing packages containing "dotnet" in the name with "dpkg --get-selections | grep dotnet" and then uninstall one by one with "sudo apt-get purge dotnet_package_name".
The script below downloads and extracts .Net Core in a folder ~/dotnet. Please add this folder to your PATH (usually by editing ~/.bash_profile). We install several yum packages needed by .Net Core and our dev.sh script.
mkdir ~/dotnet
cd ~/dotnet
wget https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/1.0.0-preview2-002875/dotnet-dev-rhel-x64.1.0.0-preview2-002875.tar.gz
tar zxfv dotnet-dev-rhel-x64.1.0.0-preview2-002875.tar.gz
sudo yum -y install libunwind.x86_64 icu git curl zip unzip