This procedure was tested on Ubuntu 16.04.03:
- Install dependency packages:
sudo apt install libunwind8 liblttng-ust0 libcurl3 libssl1.0.0 libuuid1 libkrb5-3 zlib1g libicu55 curl -y
- Register the Microsoft Product key as trusted.
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
- Set up the desired version host package feed (for Ubuntu 16.04):
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-get update
- Install .NET Core:
sudo apt-get install dotnet-sdk-2.1.4
- Test the installation:
dotnet --version
dotnet publish -r ubuntu.16.04-x64
- Unit testing C# in .NET Core using dotnet test and xUnit - 29.11.2017
- Configuring xUnit.net with JSON
- Integration tests in ASP.NET Core - 30.05.2018