Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.33 KB

net-core.md

File metadata and controls

47 lines (35 loc) · 1.33 KB

.NET Core

.NET Core on Linux

Installing .NET Core on Linux

This procedure was tested on Ubuntu 16.04.03:

  1. Install dependency packages:
sudo apt install libunwind8 liblttng-ust0 libcurl3 libssl1.0.0 libuuid1 libkrb5-3 zlib1g libicu55 curl -y
  1. 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
  1. 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
  1. Install .NET Core:
sudo apt-get install dotnet-sdk-2.1.4
  1. Test the installation:
dotnet --version

Packaging for Linux

dotnet publish -r ubuntu.16.04-x64

Testing

ASP.NET Core