Installing .NET Core on Linux

To show the cross-platform feature of .NET Core, let's set up a .NET Core development environment on Ubuntu 17.04 desktop version. Before installing Visual Studio Code, let's install .NET Core on the Ubuntu OS. First, you need to do a one-time registration of the Microsoft Product feed, which is done by registering the Microsoft signature key before adding the Microsoft Product feed to the system:

  1. Launch the system terminal and run the following commands to register the Microsoft signature key:
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpgsudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
  1. Register the Microsoft Product feed with this command:
sudo sh -c 'echo ...

Get C# and .NET Core Test Driven Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.