0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

How to Install .NET Core 2.1 SDK (v2.1.301) in Ubuntu 18.04 LTS?

Last updated at Posted at 2018-06-25

1. Download .NET Core SDK

2. Register Microsoft key and feed

$ wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
$ sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
$ wget -q https://packages.microsoft.com/config/ubuntu/18.04/prod.list
$ sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
$ sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
$ sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list

3. Install

$ sudo apt-get update
$ sudo apt-get install apt-transport-https
$ sudo apt-get install dotnet-sdk-2.1

4. Check .NET Core SDK Version

$ dotnet --version
2.1.301

5. Create and Run Project

$ dotnet new console -o myApp
$ cd myApp
$ dotnet run
Hello World!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?