Step 2: Run ASP.NET Generator

In the command terminal, run the aspnet generator: yo aspnet. Select the option to create a "Web API Application". Name it whatever you like.

Browse the files to see what was created.

Step 3: Run Docker Generator

In the command terminal, navigate to the new folder that was created (cd xyz) and run the aspnet generator: yo docker. Choose the following options for the prompts:

Project: .NET Core

Version: rtm

Web Server? Y (which is the default if you press [Enter])

Port: 8080 (or whatever you like)

Name: (default if fine)

Service: (default if fine)

Compose: (default if fine)

Overwrite Dockerfile? Y (which is the default if you press [Enter])

Step 4: Configure .vscode

Move the .vscode folder to the root level.

Open the tasks.json file in the editor. Set the Windows cwd value to ${workspaceRoot}\\WebAPIApplication and the OSX version to ${workspaceRoot}/WebAPIApplication.

Open the launch.json file in the editor. Set the pipTransport > pipeCwd value to ${workspaceRoot}/WebAPIApplication and the windows > pipeCwd value to ${workspaceRoot}\\WebAPIApplication.

These values were specified so that we can have a basic project directory structure and debug our project (<root>/WebAPIApplication) from the root directory.

Step 5: Restore project.json

At some point you should have seen a "Restore" popup. If you didn't see this, or you did not click "Restore" when it was present, navigate within the terminal to the directory that houses our project.json file.

From there, execute dotnet restore

Step 6: Debug

Start the debugger [F5] (Mac: [Fn] + [F5]) and pay close attention to the output.