-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
C# 7.1 and .NET Core 2.0 - Modern Cross-Platform Development - Third Edition
By :
First, we will write a simple console application that needs to execute three methods, and execute them synchronously (one after the other).
In Visual Studio 2017, press Ctrl + Shift + N or go to File | Add | New Project....
In theNewProject 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; using System.Diagnostics; using static System.Console;
There will be...