Getting Started with ASP .Net Core 2.1 on Mac OS

Gaurav Gahlot, Learning something new everyday.

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
5 Lessons (21m)
    • 1. Introduction

    • 2. Installing .Net Core 2.1 on Mac OS

    • 3. First Project - Hello, World! Console App

    • 4. Creating a Web Project - HelloMVC

    • 5. Adding a Class Library to your Project


About This Class

Hello, World! :)

Welcome to the class, Getting Started with ASP .Net Core 2.1 on Mac OS. This class is basically the first one in a series of upcoming classes. In this class, we will setup our .Net Core 2.1 environment and will then create some projects to get familiar with .Net Core CLI (Command Line Interface).

During the class:

  • we will first install .Net Core 2.1 on Mac OS.
  • see what we can do with the .Net Core CLI.
  • create our very first project as a "Hello, World!" console app.
  • we will then create an MVC project.
  • in real life, Web apps or any app for that matter, consume different projects or libraries, and therefore, we will add a class library to our app too.
  • after that, we will create a Visual Studio Solution that will contain a console based app, an MVC project, and a class library that will be referenced by both the apps.
  • we will then add an NUnit test project to our solution and add some tests.
  • we will run those tests to make sure everything is fine.
  • we will then close the class by installing a NuGet Package (Autofac) to our console app. This will be the stepping stone for our next class in the series. 

And not to mention, all of this using the .Net Core CLI

Dear Linux Users:

As the class name suggests, I will be doing everything on a Mac OS. However, if you are on a Linux based system like Ubuntu, CentOS or any other, don't worry. All you need to do is, install .Net Core on your Linux distribution.

I would suggest you to watch the first half of the "Installing .Net Core 2.1 on Mac OS" lesson and get .Net Core for Linux instead of Mac OS. Or, you can directly go to .Net Core download page and get the installer. After that, you can surely follow along. The .Net Core CLI works exactly same on both the platforms. 

By the end of this class you will be very comfortable working with .Net Core CLI, at your work place as well as at your home while doing some research. And as a Mac user, you will also have an understanding about what is really going on behind the scenes, when you are using Visual Studio for Mac.

I hope you will enjoy the class. If you face any issues or challenges, I will be more than happy to help. I'm really looking forward to hear from you. :)

Happy Coding!!