.Net Core

Microsoft’s promise of

Any developer, any app, any platform

builds on the top of a technical foundation named .Net Core. Microsoft started with .Net Framework more than a decade ago to as runtime stack for Windows, a response to the Java Runtime Environment. I am not going into that rabbit hole, because it will get complicated and this blog is about using a Mac for cross-platform native and web development. Let’s just say it made sense for the .Net Team to create a new runtime environment that works on Windows, macOS and Linux, hence the new package called .Net Core.

What is it?

.NET Core is an open source cross-platform implementation of .NET that includes a runtime, framework libraries, compilers and tools that support a variety of chip and OS targets.

Why is it important?

.Net Core is required for cross platform native mobile development with Xamarin and for server side web development with ASP.Net Core. Both will be discussed in future posts.

How to install .Net Core?

Installation instructions on the microsoft page are pretty straight forward. If you’d rather watch a Video Kendra Havens will guide you in under seven minutes.

To learn how to build a simple cross-platform console application, follow this guide.

Warning though, as there is some code written in C# which I will get to next. C# happens to be the most popular programming language running on .Net platform. There are other options primarily Visual Basic, and F#, but my experience is that everything around Microsoft Stack gets easier to understand with basic knowledge of C#. I’ll promise it won’t be as bad as Java.

Update: If after instllation you still get a dotnet: command not found exception, you might need to add dotnet to your PATH manually:

# dotnet 
export PATH=/usr/local/share/dotnet:$PATH

See also: https://github.com/dotnet/cli/issues/3048

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.