Running multiple actions synchronously

In Visual Studio 2017, press Ctrl + Shift + N or go to File | Add | New Project....

In the New Project dialog, in the Installed list, expand Visual C#, and select .NET Core. In the center list, select Console App (.NET Core), type the name as WorkingWithTasks, change the location to C:\Code, type the solution name as Chapter13, and then click on OK.

In Visual Studio Code, create a directory named Chapter13 with a subfolder named WorkingWithTasks, and open the WorkingWithTasks folder. In Integrated Terminal, execute the command: dotnet new console.

In both Visual Studio 2017 and Visual Studio Code, ensure that the following namespaces have been imported:

using System; using System.Threading; using System.Threading.Tasks; ...

Get C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.