Working through the ASP.NET Core on my Mac (Part 1)

This semester I took a class at my University for ASP.NET Web Forms. I really enjoyed this class, and I wanted to get into developing applications with the latest and greatest of this technology.

One big problem with this is that I almost always use my Mac on a daily basis.  This problem has been partially solved with the recent release of ASP.NET Core and all of the accompaning Visual Studio Code Tools.

In this post, I’m going to go through my experience in walking through the demo.

I have already installed Yeoman, Visual Studio Code, and I’m sure some other things that I’ve forgotten.

At this point, let’s get started.

Getting Started

First, open your terminal and navigate to the location that you would like your project. I have a development folder, so it looks something like this:


Screen Shot 2016-12-25 at 2.07.28 PM.png

Screen Shot 2016-12-25 at 2.12.24 PM.png

Visual Studio Code will be open.  Lets look at the that is inside the project.

Add a Controller and a View

Under the “How-To” section, there is a “[Add a Controller and View]”. When we navigate there, we initally get here. I didn’t notice at first, but there is a Mac guide for Visual Studio Code here.

[5 hours later…]

So… it doesn’t appear that any documentation has bubbled up in Google yet on how to actually create Controllers in Visual Studio Code; however, I might have found a work around.

You can create a new file inside the “/Controllers” folder, and name it about anything you want. The convention is the do “PluralNameController.cs”, but what’s important is what you name the class name of the controller.

Screen Shot 2016-12-25 at 10.04.53 PM.png


Where were headed…

So… this post is a little short, but I think this is where I’ll stop for now.

I hope in part 2, we can dig into incorporating data.