.Net Core "Hello Worlds"

September 27, 2016 | by Esteban Hernandez

In UX, developers, App development

.NET Core is a general purpose development platform maintained by Microsoft and the .NET community on GitHub. It is cross-platform, supported by Windows, Mac OS, and Linux.  It can be used in device, cloud, and embedded/IoT scenarios.

Why .Net Core?

With .Net Core is possible to code, compile, and run the exact same project in any different OS. You might be saying, "Hey I have Java for that.”  You are right that Java does have similar capabilities. We all also know, however, the limitations of Java.  On the other side, we know the power of .Net.  So, why .Net Core?  It’s simple!  Bring the power of .Net to any platform. Code once, run everywhere.

Installation Process

Here I would like to show the installation process in two different operating systems, just because we can.

Install for Windows

The best way to develop .NET Core on Windows is by using Visual Studio. You can download Visual Studio Community 2015 for free. Download and install:

  • Visual Studio 2015 Update 3
  • .NET Core 1.0.0 - VS 2015 Tooling Preview 2

You can also develop .NET Core apps from the command-line by downloading the .NET Core SDK for Windows. You can use your own editor, or with Visual Studio Code (free).

Install for Ubuntu 14.04, 16.04

1. Add the dotnet apt-get feed

In order to install .NET Core on Ubuntu or Linux Mint, you need to _rst set up the apt-get feed that hosts the package you need.

Example of .Net core for Ubuntu and Linux MintFigure 1 Ubuntu 14.04 / Linux Mint 17

Example of .Net core for UbuntuFigure 2 Ubuntu 16.04

2. Install .NET Core SDK

Before you start, please remove any previous versions of .NET Core from your system by using this script. To .NET Core on Ubuntu or Linux Mint, simply use apt-get.

Example of .Net installation for Core SDKFigure 3 apt-get command

And that’s it, you get .Net core, please go to the second part of this post series to see how easy is to create the hello app. But before you go let me to recommend you some tools that can make .Net Core even easier.

Visual Studio Code runs on Linux and has full support for .NET Core. Download Visual Studio Code for free and install the C# extension from the marketplace to get the best experience.